Permission issue assistance
Chris F.A. Johnson
cfaj-uVmiyxGBW52XDw4h08c5KA at public.gmane.org
Sun Aug 9 03:05:21 UTC 2009
On Sat, 8 Aug 2009, William Muriithi wrote:
> Len,
>
> Sorry, I stepped out of the house before you responded.
>
> >
> > 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.
> >
>
> My directory permission are as follow:
>
> drwxrwxrwt 67 root nagios 40960 Aug 8 22:41 tmp
>
> The directory is owned by root and group nagios
STICKY DIRECTORIES
When the sticky bit is set on a directory, files in that
directory may be unlinked or renamed only by root or their
owner. Without the sticky bit, anyone able to write to the
directory can delete or rename files. The sticky bit is
commonly found on directories, such as /tmp, that are
world-writable.
> The file has the following properties.
>
> -rw-rw-rw- 1 nobody 4294967295 1 Aug 7 16:20 /tmp/.run_challenge_update
>
> However, I run the script from an account called william
>
> >
> > What error do you get? What permissions does the directory with the
> > file have?
>
> rm: cannot remove `/tmp/.run_challenge_update': Operation not permitted
>
>
> Thank you for you assistance. I really appreciate.
>
> William
>
> >
> >
> > --
> > 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
> >
>
--
Chris F.A. Johnson, webmaster <http://woodbine-gerrard.com>
===================================================================
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
--
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