[sudo-users] Problem with CD command while using sudo
Todd C. Miller
Todd.Miller at courtesan.com
Fri Jul 29 12:37:11 EDT 2005
In message <200507291356.TAA24376 at harbour.india.hp.com>
so spake "Mousumi Kadham" (mousumi):
> Here is the situation. There are certain commands to be executed, files to
> be edited in a protected directory which has a long path. Without sudo and
> every one using root, administrators simply will do cd to the final
> directory and do many things like editing a few files etc. However with
> sudo, for every command, a long path has to be given and can quickly become
> very irksome to the administrators. Hence the question about 'cd' with sudo.
You can use group directory permissions to give the admins read and
execute access to the directory in question. Then they can use sudo
to do specific tasks.
More information about the sudo-users