-   Linux - Newbie (
-   -   SUDO Problems! Need Help!! (

Md.Abul Quashem 10-27-2008 02:30 PM

SUDO Problems! Need Help!!
Hello everybody,

I've configured sudoer's file but there are few problems occurs.
when I want to add a user using sudo command then ask to give passwd,
which passwd r used? I have given two passwd(user particular and root)but doesn't work. Below is the configuration file:

# 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

User_Alias ADMINS = poran,limon
User_Alias PARTTIME = Joe,bill

# Cmnd alias specification

Cmnd_Alias BROWSE = /bin/ls, /bin/cd, /bin/cat
Cmnd_Alias KILL = /bin/kill
Cmnd_Alias USERS = /usr/sbin/adduser [A-Z]*, /usr/sbin/userdel -r [A-Z]*

#Defaults specification

# User privilege specification

root ALL = (ALL) ALL
PARTTIME ALL = USERS, KILL, BROWSE, /usr/bin/passwd [A-Z]*, !/usr/bin/passwd root
#Uncomment to allow people in group wheel to run all commands
# %wheel ALL=(ALL) ALL
# Same thing without a password

# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now

If there are any errors, please help me.


jay73 10-27-2008 03:04 PM

You could add your user to the group wheel and remove the # from this line:


# %wheel ALL=(ALL) ALL

All times are GMT -5. The time now is 09:50 PM.