1slog(8) User Manuals slog(8)
2
3
4
6 slog - execute a command as another user
7
9 slog [-u user]
10 slog [-u user] [-h] [command and args]
11
13 slog is a shortcut to running "sudo [-u $USER] sslogger [cmd and
14 args]"
15
16 ssloger is session keystroke logging utility and allows permitted
17 users to execute commands, or open interactive shells as the superuser
18 or another user. When used in interactive session mode, keystrokes are
19 recorded in a special file. Privileged user escalation is set by stan‐
20 dard sudo rules in sudoers file. A tty is required for interactive ses‐
21 sions
22
23 See the manpage for sslogger(8) for details
24
25
27 slog accepts the following command line options:
28
29 -u <USER>
30 Run command or interactive shell as USER. If not specified, the
31 root user is assumed
32
33
34 [command and args]
35 Execute "command and args" instead if interactive shell. Pro‐
36 vides ability run sslogger within a script. non-interactive mode
37
38 -h Stay in current working directory, do not cd to USER home dir
39
40
41 -d Debug -f Flush buffer on every newline
42
43 The sreplay command can be used to sreplay recorded sessions
44
45 sreplay <filename>
46 Replays interactive session identified by filename
47
48
50 In interactive mode, always exits 0.
51
52 When run in a non-interactive mode, slog returns the value of
53 the command being run.
54
55
57 /etc/sslogger.d/sslogger.conf
58 Configuration file - see man sslogger.conf(5) for details
59 /etc/sudoers
60 Sudo Configuration file - see man sslogger(8) for example
61 configurations and man sudoers(5) for sudoer details
62 /var/log/slog
63 Default directory in which sessions are logged
64
66 Note: the following examples assume suitable sudoers(5) entries.
67
68 $ slog
69 - Obtains an interactive shell as root.
70
71 $ slog ls -l /root
72 - Runs a command as root, then exists.
73
74 $ slog -u user2
75 - Obtains an interactive shell as another user.
76
77 $ slog -u user2 -h
78 - Obtains an interactive shell as user2 whilst remaining
79 in the current working directory.
80
81 $ sreplay <filename>
82 - Replays an interactive session log (may require user to
83 be added to sloggers group, see (CONFIGURATION FILES)
84
86 If you feel you have found a bug in sslogger, please submit a
87 bug report at http://sslogger.sourceforge.net
88
90 Limited free support is available via the sslogger-users mailing
91 list, see http://sslogger.sourceforge.net to subscribe or search
92 the archives.
93
95 Edward Brand <edbrand@brandint.com>
96
98 sslogger(8) ssloger.conf(5) sreplay(8) sudo(8), sudoers(8),
99 su(2)
100
101
102
103Linux February 2009 slog(8)