Permission issue assistance

William Muriithi william.muriithi-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Sun Aug 9 03:24:43 UTC 2009


2009/8/8 Chris F.A. Johnson <cfaj-uVmiyxGBW52XDw4h08c5KA at public.gmane.org>

> 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.
>
> Ah thanks Chris. That is a very excellent catch. I did not realized the tmp
directory has a sticky bit. Now, after looking at it again, I notice there
is the "t" sign.

Regards,

William


>
> > 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gtalug.org/pipermail/legacy/attachments/20090808/ae39d8de/attachment.html>


More information about the Legacy mailing list