Re: permissions all zero when using 'cp'
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I am afraid (just noticed this as you mention it) this extra dash is an
artefact added by my mail client (thunderbird) to escabe the double-dash
at the beginning of a line.
Am 30.12.2010 18:17, schrieb Bob McGowan:
> On 12/29/2010 05:56 PM, Martin Lorenz wrote:
>> Dear Gurus,
>>
>> i recently noticed some errors at my mail-server and so I tried to drill
>> it down with my limited abilities.
>>
>> what I found is really strange:
>>
> <-deleted->
>
>> root@X:/tmp# ls -altr
>> insgesamt 20
>> drwxrwxrwt 2 root root 4096 29. Dez 15:06 .X11-unix
>> drwxrwxrwt 2 root root 4096 29. Dez 15:06 .ICE-unix
>> drwx------ 2 mlo users 4096 29. Dez 21:38 ssh-VkxmJ15962
>> - - -rw-rw-r-- 1 root root 0 29. Dez 21:47 test
>> drwxr-xr-x 21 root root 4096 29. Dez 22:06 ..
>> drwxrwxrwt 5 root root 4096 29. Dez 22:22 .
>>
>> notice the file "test"
>>
>> root@X:/tmp# cp test test.bak
>> root@X:/tmp# cp -p test test.bak2
>> root@X:/tmp# ls -altr
>> insgesamt 36
>> drwxrwxrwt 2 root root 4096 29. Dez 15:06 .X11-unix
>> drwxrwxrwt 2 root root 4096 29. Dez 15:06 .ICE-unix
>> drwx------ 2 mlo users 4096 29. Dez 21:38 ssh-VkxmJ15962
>> - - -rw-rw-r-- 1 root root 0 29. Dez 21:47 test.bak2
>> - - -rw-rw-r-- 1 root root 0 29. Dez 21:47 test
> ^^^^
>> drwxr-xr-x 21 root root 4096 29. Dez 22:06 ..
>> - - ---------- 1 root root 0 29. Dez 22:22 test.bak
>> drwxrwxrwt 5 root root 4096 29. Dez 22:22 .
>>
>> now kindly notice test.bak and test.bak2
> <-deleted->
>
> I'm not sure if this is relevant, but the ls output lines for these
> files look odd, having "extra" '- ' characters at the start.
>
> Older 'ls' commands (not Gnu) might do this, if the file name contained
> a literal carriage return character, but the 'ls' on my system prints a
> question mark for non-printing/graphic characters.
>
> You could try the '-b' option and see what that prints. The Gnu ls uses
> backslash escapes (\r, \b, \octnum etc.). This might help in searching
> strace output, if you do try Bob Proulx's suggestion, since you would
> know the actual character to look for.
>
> Also, you ran the above as root. Since the original file is readable by
> all, what happens if you do the copy as a regular user?
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJNHN4KAAoJECZ8myNlGwU16YoIAJ04J8dyXKzU9AAck39px14V
39sRBNc04TSjkbfpKN2wedJLGjLRThPbEqfEAm9xkf0YPn1p4Gyv7CV4hhWvBXj2
wedSoCfWKfyCvAFDkFhQjl2foKMYMB6r/zastqIwm3TgivtYnVqIklyMwxB7mxD6
r5DadiASn3jwFTi5Zu8Al+J4VadJX3r/IVHsXQ13vqYrnHvrlzFPrfWU3CT5C42m
rDdHRYR/R51aLlmCpl6PBi9+hfXpNZpFd0ulTQd/XBD7ARik/O2O2rFwEI1b+L47
rfuDB0yJ25FYNeYvzz3QALIpaSiCkcZQDO/te78b+KXyGdUXbLyErXTbRqzXOIc=
=0nN0
-----END PGP SIGNATURE-----
Reply to: