Hello, In Ubuntu, there is a default user called rony who is a part of the admin group and that user is allowed to run root commands with sudo. Now I create another user called test. There is a script in rony's home directory called timediff.bash and using sudo I want the user 'test' to run the script as 'rony'.
In the sudoer's file the entry for the environment Default is as below: Defaults env_reset It is changed to: Defaults env_reset, runas_default=rony and a line is added below it: test ALL=(rony) /home/rony/timediff.bash This allows the user 'test' to run the timediff.bash script as 'rony'. All fine. However the user 'rony' gets debarred from the sudoer due to the runas_default=rony declaration. Is there any way both these features can be had? I tried different positions of Defaults in the file above the original Defaults command or below but at a time I can either run 'rony' as root or 'test' as 'rony' depending on the runas_default entry. Not both. -- As a proper list etiquette..... Please trim your replies. Avoid cross posting to other lists. Post your replies below the relevant original text, leaving a line space. Do not re-use old messages to write new ones. For new messages, create a new message. Regards, Rony. -- http://mm.glug-bom.org/mailman/listinfo/linuxers

