Misc Admin

From TARDIS Project

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


List all users in LDAP:

ldapsearch -x uid='*' | grep ^uid: | awk '{print $2}' > users.txt


Check out and lock a file for editing with RCS, edit it, and check it in again:

co -l <file>
editor <file>
ci -w <your_user_name> -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.