sudosh(1) - Linux man page
Name
sudosh - works like a VCR and records shell sessions.Synopsis
sudosh [OPTION]...Description
Options
- -h
- display help synopsis and exit.
- -i
- initialize LOGDIR
- -v
- show version information and exit.
Environment
- SHELL
-
This shell will be used with sudosh is executed. The shell must be listed in /etc/shells. If the shell specified isn't listed in /etc/shells the invoking user's login shell from /etc/passwd will be used instead.
AIX is different. The SHELL is set and executed by setpenv() which reads the user's attributes from /etc/passwd.
Bugs
sudosh is difficult to pronounce.Examples
Initialize the logging directory which will create LOGDIR if it doesn't exist and set the correct, secure permissions.$ sudoRecord your own session as yourself.sudosh -i
$ sudosh
Obtain a root shell and record it.
$ sudo sudoshLogin as oracle and record the session.
$ sudo -u oracle sudosh
View recorded sessions. See also sudosh-replay(8)
# sudosh-replay