GNU bug report logs -
#9788
chown gets permission denied
Previous Next
Reported by: Richard Woolley <rwoolley <at> marvell.com>
Date: Tue, 18 Oct 2011 23:23:01 UTC
Severity: normal
Tags: notabug
Done: Pádraig Brady <P <at> draigBrady.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 9788 in the body.
You can then email your comments to 9788 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-coreutils <at> gnu.org
:
bug#9788
; Package
coreutils
.
(Tue, 18 Oct 2011 23:23:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Richard Woolley <rwoolley <at> marvell.com>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Tue, 18 Oct 2011 23:23:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
When trying to change ownership of the files in a directory, I mistakenly had 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/
ls -l project
total 0
?--------- ? ? ? ? ? compile.conf
?--------- ? ? ? ? ? myproject.conf
?--------- ? ? ? ? ? novas_fli.so
Same for the other directories' contents.
When I try to chown -R or chgrp -R or rm -rf for project/ I get permission denied. How can I use chown to set something valid (e.g., user proj1) so I can get rid of these directories/files??
Thanks.
Richard
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#9788
; Package
coreutils
.
(Tue, 18 Oct 2011 23:38:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 9788 <at> debbugs.gnu.org (full text, mbox):
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
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#9788
; Package
coreutils
.
(Wed, 19 Oct 2011 00:01:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 9788 <at> debbugs.gnu.org (full text, mbox):
Hi Alan,
Thank you! I'd never seen the ?'s before so was stumped.
Richard
-----Original Message-----
From: Alan Curry [mailto:pacman-cu <at> kosh.dhis.org]
Sent: Tuesday, October 18, 2011 4:37 PM
To: Richard Woolley
Cc: 9788 <at> 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
bug closed, send any further explanations to
9788 <at> debbugs.gnu.org and Richard Woolley <rwoolley <at> marvell.com>
Request was from
Pádraig Brady <P <at> draigBrady.com>
to
control <at> debbugs.gnu.org
.
(Wed, 19 Oct 2011 00:36:02 GMT)
Full text and
rfc822 format available.
Added tag(s) notabug.
Request was from
Pádraig Brady <P <at> draigBrady.com>
to
control <at> debbugs.gnu.org
.
(Wed, 19 Oct 2011 00:36:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 16 Nov 2011 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 13 years and 215 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.