[Top][All Lists]

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

bug#6245: cp - copy files and directories, ls -Rld, chmod

From: address@hidden
Subject: bug#6245: cp - copy files and directories, ls -Rld, chmod
Date: Sat, 22 May 2010 00:19:30 -0700 (PDT)


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

address@hidden:~$ 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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]