-
Sincere Sudo Situations
Hey All,
I'm doing some delegation via sudo and seem to be blind at the moment.
Can someone give me a second eye and tell me what I'm missing here?
I'm trying to allow any user in a specific group to su to a specific user using their environment settings (su - username).
I have it configured now so that (su username) is permitted without setting up the environment with the following line:
:mrgreen: user1 (ALL)=(ALL) /bin/su user2
but I can't get any of the following to work:
:mad:user1 (ALL)=(ALL) /bin/su user2, (ALL) /bin/su - user2
:mad:user1 (ALL)=(ALL) /bin/su [-]* user2
Does anyone know how to get this working?
Thanks!
-
NEVERMIND.
Two hours of work wasted because I didn't verify which /etc/sudoers file I was editing.
FYI,
user1 (ALL)=(ALL)/bin/su user2, /usr/bin/su - user2 --- works great!
-
Sorry you had to provide your own answer, but thanks for reporting back with the solution.
Don't hesitate to post new threads with any other questions.