Tuesday, September 13, 2011

How do i change a sudoers file entry to limit a users access to a directory?

i had a user whose access i wanted to limit in the sudoers file on a unix sun box. currently his sudo access gives him too much access, here is what his entry in the sudoers file looks like:



'jryan ALL=(ALL) ALL,(ALL)!/usr/bin/su, (ALL)!/usr/local/sbin/visudo'



there were a couple of directories that i would specifically like to deny him access to. is there a way i can change his sudoers file entry to deny him access to those directories?

thanks.How do i change a sudoers file entry to limit a users access to a directory?
Is there any reason you are giving him root access in the first place? If he has no reason to be root, just take away his sudo ability and use privileges to keep him out of the folder.
  • software
  • fish
  • No comments:

    Post a Comment