Help needed in sudo access | Unix Linux Forums | UNIX for Advanced & Expert Users

  Go Back    


UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

Help needed in sudo access

UNIX for Advanced & Expert Users


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 10-10-2012
solaris_1977 solaris_1977 is offline
Registered User
 
Join Date: Mar 2011
Last Activity: 13 April 2014, 7:27 PM EDT
Posts: 333
Thanks: 32
Thanked 3 Times in 3 Posts
Help needed in sudo access

I want to give root access to a user called denielr on server - tsprd01, but do not want to share root password. I have sudoers configured already.
He should have all access equal to root. I made this entry in /etc/sudoers, but it is not working
PHP Code:
denielr tsprd01 =(rootNOPASSWDALL 
I tried to become denielr executed
PHP Code:
root@tsprd01:/root# su - denielr
-bash-3.00$ /usr/local/bin/sudo -l
User denielr may run the following commands on this host
:
    (
rootNOPASSWDALL
-bash-3.00$ /usr/local/bin/sudo echo|format
Searching 
for disks...done
No permission 
(or no disks found)!
-
bash-3.00
Am I missing something ?
Sponsored Links
    #2  
Old 10-10-2012
in2nix4life's Avatar
in2nix4life in2nix4life is offline
Registered User
 
Join Date: Oct 2007
Last Activity: 17 April 2014, 4:24 PM EDT
Location: East Coast
Posts: 562
Thanks: 0
Thanked 160 Times in 146 Posts
Try:


Code:
denielr     ALL=(ALL) NOPASSWD: ALL

The Following User Says Thank You to in2nix4life For This Useful Post:
solaris_1977 (10-10-2012)
Sponsored Links
    #3  
Old 10-10-2012
solaris_1977 solaris_1977 is offline
Registered User
 
Join Date: Mar 2011
Last Activity: 13 April 2014, 7:27 PM EDT
Posts: 333
Thanks: 32
Thanked 3 Times in 3 Posts
It worked. Thanks in2nix4life
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
ONLY SU Sudo access ajaincv Shell Programming and Scripting 1 07-22-2011 01:03 AM
Any way to know beforehand if SUDO is (going to be) needed? courteous Shell Programming and Scripting 1 12-12-2010 06:37 PM
sudo user access daveisme AIX 2 07-15-2010 03:39 PM
Sudo help needed blane UNIX for Advanced & Expert Users 3 10-24-2008 02:33 PM
secure access using sudo melanie_pfefer Solaris 0 03-12-2008 04:11 AM



All times are GMT -4. The time now is 05:22 PM.