Difference between revisions of "Misc Admin"

From Tardis
Jump to: navigation, search
(RCS)
Line 12: Line 12:
  
 
=== [[RCS]] ===
 
=== [[RCS]] ===
Check out and lock a file for editing with [[RCS]], and check it in again:
+
Check out and lock a file for editing with [[RCS]], edit it, and check it in again:
<pre>co -l [file]
+
<pre>co -l <file>
ci -u [file]</pre>
+
editor <file>
 +
ci -w <your_user_name> -u <file></pre>
 
[[category:Admin Documents]]
 
[[category:Admin Documents]]
  
 
=== Programs ignore terminal resizing ===
 
=== 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>.
 
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 17:58, 15 April 2007

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, 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.