[sudo-users] limit the dir creation to one level

Moisés Barba Pérez mbarperoi at gmail.com
Thu Mar 3 08:05:24 EST 2011


Hi:

   I would like to create a rule in sudoers file to allow an user the mkdir
comand. I'm looking for the way to limit the dir creation to one level, for
example:

1. The user can create a dir in /data: sudo mkdir /data/user
2. The user can't create a subdir un /data: sudo mkdir /data/user/mydir (I
want to aboid this)

   I have been playing with the wildcards in the manual but I can make a
rule for this funcionality.

Regards,
Moisés.



More information about the sudo-users mailing list