Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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:

    user1 (ALL)=(ALL) /bin/su user2

    but I can't get any of the following to work:

    user1 (ALL)=(ALL) /bin/su user2, (ALL) /bin/su - user2
    user1 (ALL)=(ALL) /bin/su [-]* user2

    Does anyone know how to get this working?


  2. #2

    Two hours of work wasted because I didn't verify which /etc/sudoers file I was editing.


    user1 (ALL)=(ALL)/bin/su user2, /usr/bin/su - user2 --- works great!

  3. #3
    Join Date
    May 2004
    arch linux
    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.

  4. $spacer_open

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts