Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Sudo doubt

3 views
Skip to first unread message

apogeus...@gmail.com

unread,
May 9, 2008, 3:10:55 PM5/9/08
to

Hi:

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

Wolfgang

unread,
May 9, 2008, 3:15:11 PM5/9/08
to
apogeus...@gmail.com schrieb:


"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.

apogeus...@gmail.com

unread,
May 9, 2008, 3:43:59 PM5/9/08
to
On May 9, 4:15 pm, Wolfgang <wtra...@AT.web.de> wrote:
> apogeusiste...@gmail.com schrieb:
> W.- Hide quoted text -
>
> - Show quoted text -

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.

Wolfgang

unread,
May 9, 2008, 3:51:57 PM5/9/08
to
apogeus...@gmail.com schrieb:


man man
man catman
set MANPATH or everytime "man -M /usr/local/man sudo"

apogeus...@gmail.com

unread,
May 9, 2008, 3:58:02 PM5/9/08
to
> set MANPATH or everytime "man -M /usr/local/man sudo"- Hide quoted text -

>
> - Show quoted text -

Thank you so much.

0 new messages