Re: [SLUG] confused about file permissions

From: Sick Twist (thesicktwist@hotmail.com)
Date: Sat Oct 29 2005 - 21:43:07 EDT


>From: Eben King <eben1@tampabay.rr.com>
>Reply-To: slug@nks.net
>To: slug@nks.net
>Subject: Re: [SLUG] confused about file permissions
>Date: Sat, 29 Oct 2005 20:47:43 -0400 (EDT)
>
>No, you need execute permission as well:
>
>[eben@pc tmp]$ ls -l 1
>total 4.0K
>4.0K d--------- 2 root root 4.0K Oct 29 20:37 foo/
>[eben@pc tmp]$ chmod 200 1
>[eben@pc tmp]$ ls -ld 1
>4.0K d-w------- 3 eben eben 4.0K Oct 29 20:37 1/
>[eben@pc tmp]$ rmdir 1/foo
>rmdir: `1/foo': Permission denied
>[eben@pc tmp]$ chmod 100 1
>[eben@pc tmp]$ ls -ld 1
>4.0K d--x------ 3 eben eben 4.0K Oct 29 20:45 1/
>[eben@pc tmp]$ rmdir 1/foo
>rmdir: `1/foo': Permission denied
>[eben@pc tmp]$ chmod 300 1
>[eben@pc tmp]$ ls -ld 1
>4.0K d-wx------ 3 eben eben 4.0K Oct 29 20:37 1/
>[eben@pc tmp]$ rmdir 1/foo
>[eben@pc tmp]$
>
>Haven't got a handle on _why_ yet...

Well you're not alone :-)

I have come to realize that I think Nautilus has a broken implementation of
permissions because it prohibits doing what I have just learned I can do
from the command line:

jconte@kunto:~/Desktop $ ls -ld .
drwxr-xr-x 3 jconte jconte 472 2005-10-29 21:34 .
jconte@kunto:~/Desktop $ mkdir foo
jconte@kunto:~/Desktop $ chmod 700 foo
jconte@kunto:~/Desktop $ sudo chown root.root foo
Password:
jconte@kunto:~/Desktop $ ls -ld foo
drwx------ 2 root root 48 2005-10-29 21:34 foo

At this point, Nautilus says that I do not have permission to delete foo but
I can do so from the command line:

jconte@kunto:~/Desktop $ rmdir foo
jconte@kunto:~/Desktop $ ls -ld foo
ls: foo: No such file or directory

Time to fire up bugzilla I guess...

-Jonathon

-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:58:04 EDT