GNU bug report logs - #6245
cp - copy files and directories, ls -Rld, chmod

Previous Next

Package: coreutils;

Reported by: "estonoeshawaii <at> yahoo.com" <estonoeshawaii <at> yahoo.com>

Date: Sat, 22 May 2010 07:27:01 UTC

Severity: normal

Done: Bob Proulx <bob <at> proulx.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "estonoeshawaii <at> yahoo.com" <estonoeshawaii <at> yahoo.com>
To: bug-coreutils <at> gnu.org
Subject: cp - copy files and directories, ls -Rld, chmod
Date: Sat, 22 May 2010 00:19:30 -0700 (PDT)
[Message part 1 (text/plain, inline)]
Hi,

1. The copy command  cp -a

-a, --archive
              same as -dpR

-p     same as --preserve=mode,ownership,timestamps

is not doing what it is supposed to do (and thats is fine, of course), because It does not preserve ownership (except if you are root) . The problem is that it doesn't tell you anything when it doesn't do it or that It shouldn't be supposed to preserve ownership.
-------------------
2. Many commands act recursively on a directory with an -R option that affects the directory and all the files it contains.

There should be a

ls -ld -R

command that lists in detail the directory and its contents to quickly check results in one step.
--------------------------------
3. If we have:

drwx------ 2 user2 user2  392 2010-01-11 12:04 /home/user2/directory

user1 <at> mypc:~$ su  -c 'chmod -R 644 /home/user2/directory' user2

doesn't work. You need to change the mode of the directory first and then you can apply a recursive chmod. Is this a bug?

Many thanx for many things.
:-)



      
[Message part 2 (text/html, inline)]

This bug report was last modified 15 years and 82 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.