Difference between revisions of "Misc Admin"
From Tardis
m |
|||
(5 intermediate revisions by 4 users not shown) | |||
Line 3: | Line 3: | ||
This page is for keeping track of those little commands which you can never remember | 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: | Resetting security mode on the ultra's proms from debian: | ||
<pre>eeprom security-mode = none</pre> | <pre>eeprom security-mode = none</pre> | ||
− | List all users in LDAP: | + | === [[LDAP]] === |
+ | List all users in [[LDAP]]: | ||
<pre>ldapsearch -x uid='*' | grep ^uid: | awk '{print $2}' > users.txt</pre> | <pre>ldapsearch -x uid='*' | grep ^uid: | awk '{print $2}' > users.txt</pre> | ||
− | Check out and lock a file for editing with [[RCS]], and check it in again: | + | === [[RCS]] === |
− | <pre>co -l | + | Check out and lock a file for editing with [[RCS]], edit it, and check it in again: |
− | ci -u | + | <pre>co -l <file> |
+ | editor <file> | ||
+ | ci -w <your_user_name> -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>. |
Latest revision as of 21:24, 12 October 2013
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, 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
.