You can control this in /etc/sudoers.
e.g.
root:/# visudo
user1 ALL = /bin/chmod ??? /TARGETDIR/*
of course, you might want to add another entry (for ls) if the user does not know what the contents of the target directory would look like.
The _proper_ way would be to use new group for all...
I use the following (we have 42 servers):
# Basic user prompt: [xxxx]$
set prompta "\\\[.*\\\]$"
# Root user prompt: :xxxx#
set promptb ":.*# "
# Other user prompts: xxxx/> or xxxx$ or [MCS]xxxx> or xxxx:yyyy>
set promptc ".*\\\/>|.*\\\$|\\\[MCS\\\].*>|.*:.*>"
...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.