Permission issue assistance

William Muriithi william.muriithi-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Mon Aug 10 16:35:33 UTC 2009


Thanks all.

That was very helpful

William

2009/8/9 Lennart Sorensen <lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org>:
> On Sat, Aug 08, 2009 at 10:45:37PM -0400, William Muriithi wrote:
>> 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
>>
>> 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
>
> The t flag on /tmp means only the owner of a file can delete it.  So in this case only nobody and root can delete it.
>
>> rm: cannot remove `/tmp/.run_challenge_update': Operation not permitted
>
> That would be the correct behaviour in /tmp.  Only nobody should be able to delete it.  You would have to make both users part of a group and make the file have that group as owner to make it possible, or you would have to have a directory writeable by all (which is considered a very bad idea).
>
> --
> 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
>
--
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