Difference between revisions of "Misc Admin"
From Tardis
Line 16: | Line 16: | ||
ci -u [file]</pre> | ci -u [file]</pre> | ||
[[category:Admin Documents]] | [[category:Admin Documents]] | ||
+ | |||
+ | === Programs ignore terminal resizing === | ||
+ | When sshd is started, it uses the signal mask from the shell that starts it. In particular, if the shell masks out window size changes (SIGWINCH) then sshd, and everything started by an ssh session, ignores them. Solution: restart sshd using <code>~bacam/unwinch /etc/init.d/sshd restart</code>. |
Revision as of 10:25, 5 December 2006
Contents
Useful Stuff
This page is for keeping track of those little commands which you can never remember
Sun administration
Resetting security mode on the ultra's proms from debian:
eeprom security-mode = none
LDAP
List all users in LDAP:
ldapsearch -x uid='*' | grep ^uid: | awk '{print $2}' > users.txt
RCS
Check out and lock a file for editing with RCS, and check it in again:
co -l [file] ci -u [file]
Programs ignore terminal resizing
When sshd is started, it uses the signal mask from the shell that starts it. In particular, if the shell masks out window size changes (SIGWINCH) then sshd, and everything started by an ssh session, ignores them. Solution: restart sshd using ~bacam/unwinch /etc/init.d/sshd restart
.