Find the answer to your Linux question:
Results 1 to 3 of 3
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? ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2005
    Posts
    4

    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?

    Thanks!

  2. #2
    Just Joined!
    Join Date
    Dec 2005
    Posts
    4
    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!

  3. #3
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    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.
    oz

Posting Permissions

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