SUDO Problems! Need Help!!
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]*
# User privilege specification
root ALL = (ALL) ALL
ADMINS 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
# %wheel ALL=(ALL) NOPASSWD: ALL
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now
If there are any errors, please help me.
You could add your user to the group wheel and remove the # from this line:
|All times are GMT -5. The time now is 06:47 PM.|