Can you tell me why when I issue:
solaris>sudo -l
User root may run the following commands on this host:
(ALL) ALL
I cannot see john user ?
cat /usr/local/etc/sudoers
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
# Failure to use 'visudo' may result in syntax or file permission
errors
# that prevent sudo from running.
#
# See the sudoers man page for the details on how to write a sudoers
file.
#
# Host alias specification
# User alias specification
# Cmnd alias specification
# Defaults specification
# Runas alias specification
# User privilege specification
root ALL=(ALL) ALL
john ALL=(ALL) ALL
# Uncomment to allow people in group wheel to run all commands
# %wheel ALL=(ALL) ALL
# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now
"sudo -l" shows only the commands allow for the actual user (seems you
are root). the newest version 1.7 can be used to list for other users
(as root only), on older versions you have to become john, or do
something like:
su - john -c "sudo -l"
W.
Thank you.
Can you tell me why when I issue man sudo I get:
# man sudo
No manual entry for sudo.
This is my install log - (a precompiled sunfreeware package):
## Installing part 1 of 1.
/usr/local/bin/sudo
/usr/local/bin/sudoedit
/usr/local/doc/sudo/BUGS
/usr/local/doc/sudo/CHANGES
/usr/local/doc/sudo/HISTORY
/usr/local/doc/sudo/INSTALL
/usr/local/doc/sudo/INSTALL.configure
/usr/local/doc/sudo/LICENSE
/usr/local/doc/sudo/PORTING
/usr/local/doc/sudo/README
/usr/local/doc/sudo/README.LDAP
/usr/local/doc/sudo/TROUBLESHOOTING
/usr/local/doc/sudo/UPGRADE
/usr/local/etc <conflicting pathname not installed>
/usr/local/etc/sudoers
/usr/local/libexec/sudo_noexec.la
/usr/local/libexec/sudo_noexec.so
/usr/local/man <conflicting pathname not installed>
/usr/local/man/man1m/sudo.1m
/usr/local/man/man1m/sudoedit.1m
/usr/local/man/man1m/visudo.1m
/usr/local/man/man4/sudoers.4
/usr/local/sbin <conflicting pathname not installed>
/usr/local/sbin/visudo
[ verifying class <none> ]
Installation of <SMCsudo> was successful.
Thank you so much.