LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-27-2008, 01:30 PM   #1
Md.Abul Quashem
Member
 
Registered: Apr 2006
Location: bangladesh
Distribution: RedHat linux 9.0, Fedora core 5 and 6
Posts: 38

Rep: Reputation: 15
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
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

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


If there are any errors, please help me.

Nabil

quashem@gmail.com
 
Old 10-27-2008, 02:04 PM   #2
jay73
Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

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

Quote:
# %wheel ALL=(ALL) ALL
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: The Ultimate Sudo FAQ To Sudo Or Not To Sudo? LXer Syndicated Linux News 13 04-13-2013 01:36 AM
Real Problems With Sudo..please Help rolando1bueno Linux - Newbie 2 01-08-2008 05:41 AM
Restricting Editing in Sudo (Advanced Sudo Question) LinuxGeek Linux - Software 4 11-04-2006 03:20 PM
Give root access to user's display + sudo problems Ephracis Linux - General 12 01-11-2006 11:25 PM
SUDO Problems da_tibmeister Linux - Security 5 08-03-2004 08:01 PM


All times are GMT -5. The time now is 12:26 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration