Not copied, "moved". The root owned file is gone, which was the real
surprise.

As a side note, I've solved it, it's happening because of an obscure
groups setup that means I have group write access to the /var/cvs
directory. 

Adam

-----Original Message-----
From: Brett Fenton [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 30 April 2002 5:56 PM
To: Kennedy, Adam; [EMAIL PROTECTED]
Subject: RE: [SLUG] Can somebody explain this effect?


by default as you've moved it into ~adam, adam will own the file and
the file will be in group adam.

this is because you've copied it in as user adam. if you'd copied it
in as root it would have maintained file permissions.

brett

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
Of
Kennedy, Adam
Sent: Tuesday, 30 April 2002 5:40 PM
To: '[EMAIL PROTECTED]'
Subject: [SLUG] Can somebody explain this effect?


Box is Debian Potato.

Note the cvs.tar.gz file ( in case it isn't obvious ).

If I'm not mistaken, I've just "taken ownership" of the file from
root.

Am I correct?

Adam

adam@pear:~$ cd /var/cvs
adam@pear:/var/cvs$ ls -l
total 67440
drwxrwxr-x   10 cvs      cvs          4096 Apr 30 13:28 APCOT
drwxrwxr-x    3 cvs      cvs          4096 Mar 18 13:50 CVSROOT
drwxrwxr-x    2 cvs      cvs          4096 Mar 12 16:29 DowJones
drwxrwxr-x    6 cvs      cvs          4096 Mar 11 13:27 FortyTwo
drwxrwxr-x    5 cvs      cvs          4096 Mar 11 13:27 MARTINTEST
drwxrwxr-x    9 cvs      cvs          4096 Mar 11 13:27 VoiceXML
-rw-r--r--    1 root     root     68959080 Apr 30 17:08 cvs.tar.gz
adam@pear:/var/cvs$ mv cvs.tar.gz ~
adam@pear:/var/cvs$ cd ~
adam@pear:~$ ls -l
total 67508
-rw-r--r--    1 adam     adam     68959080 Apr 30 17:08 cvs.tar.gz
drwxr-sr-x    5 adam     adam         4096 Apr 20 11:24 cvsroot
-rw-r--r--    1 adam     adam          582 Feb 21 10:55 index.html
-rw-r--r--    1 adam     adam        11316 Mar 20 16:00 ip
-rw-r--r--    1 adam     adam        11316 Mar 20 16:07 ip2
-rw-r--r--    1 adam     adam        11316 Mar 20 16:18 ip3
-rw-r--r--    1 adam     adam        11316 Mar 20 16:19 ip4
-rw-r--r--    1 adam     adam         1241 Mar 20 16:20 mail
-rw-------    1 adam     adam         7021 Mar 13 16:03 mbox
-rw-r--r--    1 adam     adam        14601 Mar 20 16:27 now
-rw-r--r--    1 adam     adam         5694 Mar 20 16:34 person
adam@pear:~$ cd /var/cvs
adam@pear:/var/cvs$ ls -l
total 24
drwxrwxr-x   10 cvs      cvs          4096 Apr 30 13:28 APCOT
drwxrwxr-x    3 cvs      cvs          4096 Mar 18 13:50 CVSROOT
drwxrwxr-x    2 cvs      cvs          4096 Mar 12 16:29 DowJones
drwxrwxr-x    6 cvs      cvs          4096 Mar 11 13:27 FortyTwo
drwxrwxr-x    5 cvs      cvs          4096 Mar 11 13:27 MARTINTEST
drwxrwxr-x    9 cvs      cvs          4096 Mar 11 13:27 VoiceXML
adam@pear:/var/cvs$
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to