sudo / sudoers question

Discussion in 'Technical' started by Ovidiu, Jan 11, 2006.

  1. Ovidiu

    Ovidiu Active Member

    can you use sudo and or sudoers to give somebody enough rights to be able to manage a server without him getting full root privileges and still being able to check what he did?

    any other possibility if this does not work?
  2. falko

    falko Super Moderator Howtoforge Staff

    I think so. It depends on how many programs you want grant access to your users...
  3. zaqavis

    zaqavis New Member

    command "mail"

    please let met know which direcotry has "mail" command.
    whether is "usr/sbin or /usr/bin wheere?

  4. falko

    falko Super Moderator Howtoforge Staff

    Please run
    which mail
    to find out.
  5. dishawjp

    dishawjp New Member

    To see what he did, you could take a look at the .bash_history file in his home directory. To view the last 50 commands he issues, use the "tail" command with the "-n 50" flag on that file. You might want to either redirect the output to a file (e.g., > nnn) so that you can grep for specific commands that you might be looking for without having to read all the output of the tail command, or if you want to read all the output, pipe it through more.

    Just some random thoughts.


  6. zaqavis

    zaqavis New Member


    Can we granted a permission to (home) directory to junior administrator

    how configure it in sudores file.

  7. falko

    falko Super Moderator Howtoforge Staff

    This can be done with the permissions of the /home directory.

    With sudo you can manage which user can use which program, but it's not for management of directory permissions.

Share This Page