Sudosh

Sudosh

sudosh is a filter and can be used as a login shell. sudosh takes advantage of pty devices in order to sit between the user's keyboard and a program, in this case a shell.

sudosh was designed specifically to be used in conjunction with sudo or by itself as a login shell. sudosh allows the execution of a root or user shell with logging. Every command the user types within the root shell is logged as well as the output.

This is different from "sudo -s" or "sudo /bin/sh" because when you use one of these or a similar method instead of sudosh to start a new shell then this new shell does not log commands typed in the new shell to syslog, only the fact that a new shell started is logged.
If this newly started shell supports commandline history then you can still find the commands called in the shell in a file such as .sh_history but if you use a shell such as csh that does not support command-line logging you are out of luck.
sudosh fills this gap. No matter what shell you use, all of the commandlines are logged to syslog (including vi keystrokes.)

ee also

* Audit trail
* sudo

References

Further reading

* [http://sourceforge.net/projects/sudosh sudosh at SourceForge]
* [http://www.sudo.ws/ sudo homepage]


Wikimedia Foundation. 2010.

Игры ⚽ Нужна курсовая?

Look at other dictionaries:

  • Sudo — Infobox Software name = sudo developer = Todd C. Miller caption = sudo in a terminal latest release version = 1.6.9p15 latest release date = March 27, 2008 latest preview version = 1.7b4 latest preview date = March 28, 2008 operating system =… …   Wikipedia

  • Audit trail — An audit trail or audit log is a chronological sequence of audit records, each of which contains evidence directly pertaining to and resulting from the execution of a business process or system function. Audit records typically result from… …   Wikipedia

  • Unix security — Unix security: maintaining a secure environment on Unix and Unix like operating systems is dependent on design concepts of these operating systems, but vigilance through user and administrative techniques is important to maintain security… …   Wikipedia

  • Sudo — (abréviation de substitute user do, en anglais : « exécuter en se substituant à l utilisateur »[1]) est une commande informatique utilisée principalement dans les systèmes d exploitation de type Unix et Linux. Cette commande permet …   Wikipédia en Français

  • Sudo — Saltar a navegación, búsqueda El programa sudo (de las siglas en inglés de superuser o substitute user do) es una utilidad de los sistemas operativos tipo Unix, como Linux, BSD, o Mac OS X, que permite a los usuarios ejecutar programas con los… …   Wikipedia Español

  • sudo — El programa sudo (del inglés superuser do) es una utilidad de los sistemas operativos tipo Unix, como Linux, BSD, o Mac OS X, que permite a los usuarios ejecutar programas con los privilegios de seguridad de otro usuario (normalmente el usuario… …   Wikipedia Español

  • sudo — (abréviation de substitute user do, en anglais : « exécuter en se substituant à l utilisateur »[1]) est une commande informatique utilisée principalement dans les systèmes d exploitation de type Unix. Cette commande permet à l… …   Wikipédia en Français

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”