Operating System - HP-UX
1834639 Members
2746 Online
110069 Solutions
New Discussion

Re: sudo can't acces sudoers

 
jnovak
New Member

sudo can't acces sudoers

Hi all, I wanted to create sudo rights for one user but when i run the command i.e. "sudo ll" I get this response:

can't open /usr/local/etc/sudo/sudoers: Permission denied

This is the sudo file:
$ which sudo
/usr/local/bin/sudo
$ ll /usr/local/bin/sudo
---s--x--x 1 root root 114688 Oct 15 2003 /usr/local/bin/sudo
$


This is the sudoers file:

-r--r----- 1 root root 640 Nov 9 15:25 /usr/local/etc/sudo/sudoers


And this is the setting for the user in sudoers:

user1 ALL=(ALL) ALL

This is the only one user with sudo on system. I tried to create the rights also for root but with the same result.

Thanks
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: sudo can't acces sudoers

Shalom,

ALL is a reserved word and can't be used in the context of assigning programs to users. Try something different.

change ALL to something else and it should work.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
jnovak
New Member

Re: sudo can't acces sudoers

It was not the problem. The user1 ALL=(ALL) ALL usualy works though it's not clean.

I found the solution - the problem was in permitions of the /usr/local/etc/ directory - it was 744. After I set it to 755 everything works. Thanks for answer.
jnovak
New Member

Re: sudo can't acces sudoers

The solution is mentioned in my previous comment.