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
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
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 addit
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
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
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
mar
6 matches
Mail list logo