Operating System - Linux
1752489 Members
5568 Online
108788 Solutions
New Discussion юеВ

Re: Restricting what filesystem a person can use sudo

 
SOLVED
Go to solution

Restricting what filesystem a person can use sudo

Is there a way to configure the sudoers to restrict what file system a user can use sudo in?
4 REPLIES 4
Jeff_Traigle
Honored Contributor
Solution

Re: Restricting what filesystem a person can use sudo

Not sure what you mean. You can restrict the arguments they can use on the commands that you specify they should be able to use. No way to just say "let them do anything on file system X only" though.
--
Jeff Traigle
Mel Burslan
Honored Contributor

Re: Restricting what filesystem a person can use sudo

Not using the sudoers file. You can not place restrictions on filesystems by rules in the sudoers. You can only place restrictions on which commands they can run. And if you have infinite amount of time, you can write encapsulation scripts for commands which will only run on a given filesyetem(s) and not on others. But ity is basically dependent on you not sudoers actually.
________________________________
UNIX because I majored in cryptology...

Re: Restricting what filesystem a person can use sudo

I didn't think i could But I had to ask
dirk dierickx
Honored Contributor

Re: Restricting what filesystem a person can use sudo

filesystem, no it doesn't work that way. but you can restrict sudo to certain directories. that might already solve a lot of your problems.