Re: sudo nopasswd rm

2006-03-29 Thread MikeG
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. IMHO, this is very bad advice (at least unless you know much more about the context of Marco's question). Directory write access is very

sudo nopasswd rm

2006-03-28 Thread Marco Fretz
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

Re: sudo nopasswd rm

2006-03-28 Thread Nick Holland
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)? With

Re: sudo nopasswd rm

2006-03-28 Thread MikeG
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

Re: sudo nopasswd rm

2006-03-28 Thread Darrin Chandler
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

Re: sudo nopasswd rm

2006-03-28 Thread Ingo Schwarze
MikeG wrote on Tue, Mar 28, 2006 at 01:00:32PM +0100: Marco Fretz wrote: i've got a little problem. i have to remove some files in a shell script that are not owned or writable by the user the shell script runs. You only need write access to the directory to delete files (unless the