I have a users file with an entry like this:
so MY_USER is mapped as root and is only allowed to run the ls command.
Question is: is it possible to further restrict the ls command with options?
For example: I want the user can run only "ls -l" so if he runs "ls -t" this will be not allowed?
Sounds like it would be easy to create a Shell script called...
LSLCOMMAND.sh owned by root. in the shell script you would have only:
Then just give access to the LSLCOMMAND.sh
(Assuming that we can give access to a single shell command.)