Unix/Linux 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 Linux or Unix Question    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 10-10-2012
solaris_1977 solaris_1977 is offline
Registered User
 
Join Date: Mar 2011
Last Activity: 22 June 2015, 5:13 PM EDT
Posts: 379
Thanks: 35
Thanked 4 Times in 4 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 Unix and Linux 10-10-2012
in2nix4life's Unix or Linux Image
in2nix4life in2nix4life is offline
Registered User
 
Join Date: Oct 2007
Last Activity: 2 July 2015, 2:41 PM EDT
Location: East Coast
Posts: 620
Thanks: 1
Thanked 177 Times in 163 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 Unix and Linux 10-10-2012
solaris_1977 solaris_1977 is offline
Registered User
 
Join Date: Mar 2011
Last Activity: 22 June 2015, 5:13 PM EDT
Posts: 379
Thanks: 35
Thanked 4 Times in 4 Posts
It worked. Thanks in2nix4life
Sponsored Links
Closed Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux 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 11:20 AM.