[prev in list] [next in list] [prev in thread] [next in thread]
List: coreutils-bug
Subject: bug#9788: chown gets permission denied
From: Richard Woolley <rwoolley () marvell ! com>
Date: 2011-10-18 23:59:04
Message-ID: 83185AA24C678642A07282B8BB1340B613DCA70BC7 () sc-vexch3 ! marvell ! com
[Download RAW message or body]
Hi Alan,
Thank you! I'd never seen the ?'s before so was stumped.
Richard
-----Original Message-----
From: Alan Curry [mailto:pacman-cu@kosh.dhis.org]
Sent: Tuesday, October 18, 2011 4:37 PM
To: Richard Woolley
Cc: 9788@debbugs.gnu.org
Subject: Re: bug#9788: chown gets permission denied
Richard Woolley writes:
>
> When trying to change ownership of the files in a directory, I
> mistakenly h= ad the settings wrong in the command, so I got the
> following ls -l total 16
> drw-rw-r-- 4 user proj1 4096 Sep 28 14:23 doc/
> drw-rw-r-- 24 user proj1 4096 Sep 28 14:27 modules/
> drw-rw-r-- 3 user proj1 4096 Sep 28 14:23 project/
Your first problem is that you've got some directories here with read permission but \
no x permission. In that situation, this happens:
> ls -l project
> total 0
> ?--------- ? ? ? ? ? compile.conf
> ?--------- ? ? ? ? ? myproject.conf
> ?--------- ? ? ? ? ? novas_fli.so
ls can read the directory, getting the filenames, but the lack of x permission \
prevents it from getting any other information.
First chmod u+x doc modules project, then see what you get from ls -l on them.
--
Alan Curry
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic