You only need write access to the directory to delete files (unless the sticky bit is set). Make the dir writable by a group the shell script runs as.

Mike

Marco Fretz wrote:

hello

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)?


thanks and kind regards
marco

Reply via email to