[sudo-users] sudo and groups

Galen Johnson Galen.Johnson at sas.com
Thu Apr 20 15:38:44 EDT 2006

I doubt this is a sudo problem...this is a unix permission problem.  Chmod dir2 to 750 and the command to 750...in order to traverse a directory, you have to have execute privs on it.  I'm surprised it works at all.  Of course, it would help to see the related sudoers entry for the user and command in question.


-----Original Message-----
From: sudo-users-bounces at courtesan.com [mailto:sudo-users-bounces at courtesan.com] On Behalf Of Timo Wendt
Sent: Thursday, April 20, 2006 1:53 PM
To: sudo-users at sudo.ws
Subject: [sudo-users] sudo and groups


I have the following setup:

drwxr-x--- 3 root shadow 4096 20. Apr 19:31 dir1

insgesamt 4
drwxr----- 2 timo shadow 4096 20. Apr 19:32 dir2

insgesamt 4
-rwxr----- 1 timo shadow 13 20. Apr 19:32 cmd

Now I allowed a user timo1 to run cmd as user timo. User timo has  
group shadow as his primary group. It doesn't work. It is possble  
though to run the command when logging in as user timo. Somehow sudo  
doesn't recognize that user timo has shadow as its primary group and  
therefore the problem is dir1. As soon as I set 755 on it, it works.

Is this supposed to be like that or is there any option to use?

sudo-users mailing list <sudo-users at sudo.ws>
For list information, options, or to unsubscribe, visit:

More information about the sudo-users mailing list