1rootsh(1)                       Gerhard Lausser                      rootsh(1)
2
3
4

NAME

6       rootsh - a logging wrapper for shells
7

SYNOPSIS

9       rootsh [OPTION]... [--] [COMMANDS]
10

DESCRIPTION

12       Start a shell with logging of input/output.  Rootsh must be started via
13       sudo if you want to become root.  It does not raise your privileges  on
14       it's  own.   You can run rootsh as a standalone application if you only
15       want to log your own user's session.  If you  call  rootsh  with  addi‐
16       tional commands, these will be passed to the shell.
17
18       -i, --initial
19              Make the shell a login shell
20
21       -u, --user=USER
22              Run the shell as a non-root user
23
24       -f, --logfile=FILE
25              Name of the file you want to write the logs (standalone only)
26
27       -d, --logdir=DIR
28              Directory where you want your logfile written (standalone only)
29
30       --no-logfile
31              Switch off logging to a file (standalone only)
32
33       --no-syslog
34              Switch off logging to syslog (standalone only)
35
36       -h, --help
37              Display this help and exit
38
39       -V, --version
40              Output version and capability information and exit
41
42       --     Stop  scanning  for command line options. Everything found after
43              -- will be passed to the shell with -c
44
45       No parameters mean start a rootshell
46

EXAMPLES

48       sudo rootsh
49              Start a logged root shell
50
51       sudo rootsh -u oracle
52              Start a logged shell in the context of user oracle.
53
54       rootsh -f mysession.log --no-syslog
55              Start a new shell for your user id, write protocol  into  myses‐
56              sion.log,  do not send anything to syslog.  This is identical to
57              "script -f mysession.log"
58
59       rootsh -i -u oracle lsnrctl stop
60              Run command "lsnrctl stop" as user oracle. (this will call sh -c
61              "lsnrctl stop")
62
63       rootsh -i -u oracle -- ls -l
64              Run  command  "ls  -l" as user oracle. (this will call sh -c "ls
65              -l")
66

REPORTING BUGS

68       Report bugs to Corey Henderson <corman@cormander.com>
69

SEE ALSO

71       The full documentation for rootsh can be  found  at  http://www.source
72       forge.net/projects/rootsh
73
75       Copyright © 2007 Free Software Foundation, Inc.
76       This is free software; see the source for copying conditions.  There is
77       NO warranty; not even for MERCHANTABILITY or FITNESS FOR  A  PARTICULAR
78       PURPOSE.
79
80
81
82rootsh                             July 2004                         rootsh(1)
Impressum