Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What else do i need to do?..with sudo command

Status
Not open for further replies.

shailla

Programmer
Dec 25, 2002
2
MY
Hi,

Now I'm trying to use sudo command. For example if I just one the specified user only have root authority to use
"compress" command. What else do i need to do?...
What i did are:

-Install sudo software.

-file system :/usr/bin

---s--x--x 1 root system 26043 Nov /usr/bin/sudo
(authority given: chmod 7111 )

- at /usr/local/adm (control file)
drwx--s--x 2 root system 512 Jun 9 10:06 sudocheck
-rw------- 1 root system 208 Jun 9 11:42 sudoers
-rwx------ 1 root system 2435 Nov 5 16:11 sudolog
(authority given: chmod 7111 sudoers)

But still failed, when the user tried to issue sudo compress
the respond is denied.

rgds

 
Hi,

What did you put in your sudoers file ?

You should have modified it with "visudo" (which checks for parse errors) to get something like (to start):

User_Alias usr1 = <login_name1>, <login_name2>
usr1 ALL = NOPASSWD: /usr/bin/compress
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top