[nzlug] sudo wont play?
Morgan Read
mstuff at read.org.nz
Mon Feb 5 16:35:16 NZDT 2007
Hi folks,
Anyone with any ideas why I cant execute mount with sudo? Can execute
others in sudoers (eg yum). This is really killing me!
Here's the commands and the response, below my sudoers (bottom for the
line in question). Any help really appreciated.
Regards,
Morgan.
[morgan at morgansmachine ~]$ sudo mount /dev/fd0 /mnt/floppy
Sorry, user morgan is not allowed to execute '/bin/mount /dev/fd0
/mnt/floppy' as root on morgansmachine.
[morgan at morgansmachine ~]$ which mount
/bin/mount
[morgan at morgansmachine ~]$
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# 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
Defaults env_reset
Defaults env_keep = "COLORS DISPLAY HOSTNAME HISTSIZE INPUTRC KDEDIR \
LS_COLORS MAIL PS1 PS2 QTDIR USERNAME \
LANG LC_ADDRESS LC_CTYPE LC_COLLATE
LC_IDENTIFICATION \
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME
LC_NUMERIC \
LC_PAPER LC_TELEPHONE LC_TIME LC_ALL LANGUAGE
LINGUAS \
_XKB_CHARSET"
# Runas alias specification
# User privilege specification
root 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
morgan ALL= NOPASSWD: /usr/sbin/slmodemd, /etc/rc.d/init.d/slmodemd
morgan ALL= NOPASSWD: /usr/bin/synce-serial-start,
/usr/bin/synce-serial-abort, /usr/bin/synce-serial-config
morgan ALL= NOPASSWD: /usr/sbin/mondoarchive, /usr/sbin/mondorestore
morgan ALL= NOPASSWD: /sbin/shutdown
morgan ALL= NOPASSWD: /usr/bin/yum
morgan ALL= NOPASSWD: /sbin/ifup, /sbin/ifdown
morgan ALL= NOPASSWD: /usr/bin/strace
morgan ALL= NOPASSWD: /usr/bin/cdrdao
morgan ALL= NOPASSWD: /bin/umount, /bin/umount
--
Morgan Read
NEW ZEALAND
<mailto:mstuffATreadDOTorgDOTnz>
fedora: Freedom Forever!
http://fedoraproject.org/wiki/Overview
"By choosing not to ship any proprietary or binary drivers, Fedora does
differ from other distributions. ..."
Quote: Max Spevik
http://interviews.slashdot.org/article.pl?sid=06/08/17/177220
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 338 bytes
Desc: OpenPGP digital signature
Url : http://www.linux.net.nz/pipermail/nzlug/attachments/20070205/c516dec2/signature.pgp
More information about the NZLUG
mailing list