Friday, February 16, 2007

sudo, write, talk, mesg & others

sudo let user to execute command in root privillege with out root passwd, when user input correct passwd of him/her/it self. There is only prerequisite: user must be configured in /etc/sudoers.
Common options of sudo is -l, -v, -K.
user should use visudo to edit etc/sudoers. visudo will choose editor according to EDITOR variable.

write, talk are used to send msg to other user. mesg is a switch, when invoked as mesg n, it will disable any msg sent except root.

wall = write all

etc/motd
etc/issue

No comments: