Permission issue assistance

Lennart Sorensen lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Sat Aug 8 19:19:54 UTC 2009


On Sat, Aug 08, 2009 at 02:06:37PM -0400, William Muriithi wrote:
> I am trying to write a script that should delete a file as a verification
> flag. I do not want to run the scrip as root and that is why I am getting in
> trouble.
> 
> 
> The file is created by the script and owned by the user bin. The group owner
> is nobody. The file permission is rw rw rw for user group and others.
> 
> Now considering that everybody have write permission - do you need execute
> permission to delete a file? -, why am I get permission error when deleting
> this file? while running the script as user william?  What am I missing
> here? Any assistance would be welcomed.

You probably just need write permission to the directory to delete
a file.  Write permission to a file simply permits changing the contents
of the file.

What error do you get?  What permissions does the directory with the
file have?

-- 
Len Sorensen
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list