[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: file permissions ... what am I missing ?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Dave,

Am Samstag, 26. April 2003 16:59 schrieb Dave Selby:
> ...mmm... thought I understood file permissions but I dont get this ....
>
> web@debian:~$ cd /mnt/archive/
> web@debian:/mnt/archive$ ls -al
> total 52
> drwxrwxrwx   10 root     root         4096 Feb  8 23:55 .
> drwxr-xr-x    5 root     root         4096 Apr  2 19:37 ..
> drw-r--r--    2 root     root         4096 Apr 26 10:50 autoarchive
> drw-r--r--   17 root     root         4096 Apr 15 18:57 debian
> drw-r--r--    6 root     root         4096 Jan 14 07:28 fluxbox
> drw-r--r--    2 root     root        16384 Jan 14 07:13 lost+found
> drw-r--r--    8 root     root         4096 Mar 13 10:09 misc
> drwxrwxrwx    5 root     root         4096 Feb 12 18:21 music
> drw-r--r--    3 root     root         4096 Feb 21 14:29 wallpaper
> drw-r--r--    3 root     root         4096 Apr  5 11:10 wget
> web@debian:/mnt/archive$ cd debian/
> bash: cd: debian/: Permission denied
> web@debian:/mnt/archive$
>
> ...mmm...su to root
>
> web@debian:/mnt/archive$ su
> Password:
> debian:/mnt/archive# ls
> autoarchive  debian  fluxbox  lost+found  misc  music  wallpaper  wget
> debian:/mnt/archive# ls -al
> total 52
> drwxrwxrwx   10 root     root         4096 Feb  8 23:55 .
> drwxr-xr-x    5 root     root         4096 Apr  2 19:37 ..
> drw-r--r--    2 root     root         4096 Apr 26 10:50 autoarchive
> drw-r--r--   17 root     root         4096 Apr 15 18:57 debian
> drw-r--r--    6 root     root         4096 Jan 14 07:28 fluxbox
> drw-r--r--    2 root     root        16384 Jan 14 07:13 lost+found
> drw-r--r--    8 root     root         4096 Mar 13 10:09 misc
> drwxrwxrwx    5 root     root         4096 Feb 12 18:21 music
> drw-r--r--    3 root     root         4096 Feb 21 14:29 wallpaper
> drw-r--r--    3 root     root         4096 Apr  5 11:10 wget
> debian:/mnt/archive# cd debian/
> debian:/mnt/archive/debian# ls -al
> total 68
> drw-r--r--   17 root     root         4096 Apr 15 18:57 .
> drwxrwxrwx   10 root     root         4096 Feb  8 23:55 ..
> drw-r--r--    2 root     root         4096 Jan 14 07:27 abiword
> drw-r--r--    2 root     root         4096 Feb  9 08:41 bin
> drw-r--r--    2 root     root         4096 Apr  5 09:14 browsers
> drw-r--r--    2 root     root         4096 Jan 14 07:25 checkinstall
> drw-r--r--    4 root     root         4096 Feb 19 07:24 games
> drw-r--r--    5 root     root         4096 Apr  1 19:32 gimp
> drw-r--r--    2 root     root         4096 Jan 19 01:30 grub
> drw-r--r--    2 root     root         4096 Feb  4 17:54 java
>
>
> OK what am I missing, I want to get to my debian directory, I have read
> permissions but no go ?
>
> I know this is going to be simple .... but ....
>
> Dave

If you want to cd into a directory you need execute permission.
If you want to ls the contents of a directory you need read permission.

I found it out by testing, but you may also refer to 

#> info file utilities

for more information

Best regards
Robert
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE+rlbDILH3kR/OabQRAnM0AKCUIYcBgl5sZLSPgc5MN9bgA+nL+ACdFIvp
e70jnEGLJ6VWYGVT3U05I5U=
=hMIg
-----END PGP SIGNATURE-----



Reply to: