Misc Admin

From Tardis
Revision as of 21:00, 12 October 2013 by Hayden (talk | contribs) (Text replace - "^" to "<div style="width:55%;margin:0 auto;border:2px solid;border-left:20px solid;border-color:#d9534f;text-align:center;padding:5px;font-weight:bold;">This page is out of date and needs rewriting.<br /> The content is likely to be incomp)
Jump to: navigation, search
This page is out of date and needs rewriting.
The content is likely to be incomplete or incorrect.
== 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.