Marco Fretz wrote:

i've got a little problem. i have to remove some files in a shell script
that or not owned or writable by the user the shell script runs.
is there a way to give this user write access only to the files needed
to remove by the shell script (with sudo nopasswd)?

In addition to the other fine suggestions, consider writing script(s) which does the needed access, and *only* the needed access. Then configure sudo to give the user permissions to use the access script(s). Call the access script(s) from your existing script.

--
Darrin Chandler            |  Phoenix BSD Users Group
[EMAIL PROTECTED]   |  http://bsd.phoenix.az.us/
http://www.stilyagin.com/  |

Reply via email to