[sudo-users] sudoreplay configuration/usage
Rakesh Rajasekharan
rakesh.rajasekharan at gmail.com
Wed Nov 23 04:42:50 EST 2011
I have compiled the sudo 1.7.8p1 version and now I am trying to use the
sudoreplay feature.
But thoug I followed the instructions from the sudoreplay manual
http://www.gratisoft.us/sudo/sudoreplay.man.html
I am getting the below errors with the "-l" option.
/opt/soe/local/sudo-1.7.8/bin/sudoreplay -l
sudoreplay: unable to open /var/log/sudo-io: No such file or directory
and when i try to specify a directory using the "-d" option even that does
not help
/opt/soe/local/sudo-1.7.8/bin/sudoreplay -d
/opt/soe/local/sudo-1.7.8/bin/sudoreplay: option requires an argument -- d
usage: sudoreplay [-h] [-d directory] [-f filter] [-m max_wait] [-s
speed_factor] ID
usage: sudoreplay [-h] [-d directory] -l [search expression]
# /opt/soe/local/sudo-1.7.8/bin/sudoreplay -d 'var/log'
usage: sudoreplay [-h] [-d directory] [-f filter] [-m max_wait] [-s
speed_factor] ID
usage: sudoreplay [-h] [-d directory] -l [search expression]
Are there any specific settings to be done on the sudoers file.
I have attached my sudoers file .
Please let me know if I am missing something.
Thanks,
Rakesh
-------------- next part --------------
# cat /opt/soe/local/etc/sudoers|grep -v '^#'
Defaults syslog=auth
Defaults>root !set_logname
Defaults:FULLTIMERS !lecture
Defaults:millert !authenticate
Defaults at SERVERS log_year, logfile=/var/log/sudo.log
Defaults!PAGERS noexec
User_Alias FULLTIMERS = millert, mikef, dowdy
User_Alias PARTTIMERS = bostley, jwfox, crawl
User_Alias WEBMASTERS = will, wendy, wim
Runas_Alias OP = root, operator
Runas_Alias DB = oracle, sybase
Host_Alias SPARC = bigtime, eclipse, moet, anchor:\
SGI = grolsch, dandelion, black:\
ALPHA = widget, thalamus, foobar:\
HPPA = boa, nag, python
Host_Alias CUNETS = 128.138.0.0/255.255.0.0
Host_Alias CSNETS = 128.138.243.0, 128.138.204.0/24, 128.138.242.0
Host_Alias SERVERS = master, mail, www, ns
Host_Alias CDROM = orion, perseus, hercules
Cmnd_Alias DUMPS = /usr/sbin/dump, /usr/sbin/rdump, /usr/sbin/restore, \
/usr/sbin/rrestore, /usr/bin/mt
Cmnd_Alias KILL = /usr/bin/kill
Cmnd_Alias PRINTING = /usr/sbin/lpc, /usr/bin/lprm
Cmnd_Alias SHUTDOWN = /usr/sbin/shutdown
Cmnd_Alias HALT = /usr/sbin/halt
Cmnd_Alias REBOOT = /usr/sbin/reboot
Cmnd_Alias SHELLS = /sbin/sh, /usr/bin/sh, /usr/bin/csh, /usr/bin/ksh, \
/usr/local/bin/tcsh, /usr/bin/rsh, \
/usr/local/bin/zsh
Cmnd_Alias SU = /usr/bin/su
Cmnd_Alias VIPW = /usr/sbin/vipw, /usr/bin/passwd, /usr/bin/chsh, \
/usr/bin/chfn
Cmnd_Alias PAGERS = /usr/bin/more, /usr/bin/pg, /usr/bin/less
root ALL = (ALL) ALL
soetest1 ALL = (ALL) ALL
%wheel ALL = (ALL) ALL
FULLTIMERS ALL = NOPASSWD: ALL
PARTTIMERS ALL = ALL
jack CSNETS = ALL
lisa CUNETS = ALL
operator ALL = DUMPS, KILL, SHUTDOWN, HALT, REBOOT, PRINTING,\
sudoedit /etc/printcap, /usr/oper/bin/
joe ALL = /usr/bin/su operator
pete HPPA = /usr/bin/passwd [A-Za-z]*, !/usr/bin/passwd root
bob SPARC = (OP) ALL : SGI = (OP) ALL
jim +biglab = ALL
+secretaries ALL = PRINTING, /usr/bin/adduser, /usr/bin/rmuser
fred ALL = (DB) NOPASSWD: ALL
john ALPHA = /usr/bin/su [!-]*, !/usr/bin/su *root*
jen ALL, !SERVERS = ALL
jill SERVERS = /usr/bin/, !SU, !SHELLS
steve CSNETS = (operator) /usr/local/op_commands/
matt valkyrie = KILL
WEBMASTERS www = (www) ALL, (root) /usr/bin/su www
ALL CDROM = NOPASSWD: /sbin/umount /CDROM,\
/sbin/mount -o nosuid\,nodev /dev/cd0a /CDROM
More information about the sudo-users
mailing list