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

permissions all zero when using 'cp'



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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:

when copying a file (no matter which) the copy gets zero permissions.

looks like that:


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

whenever I copy a file it ends up with this permission string: "----------"

no matter if I do this as root or as user

this also happens in my maildir, which causes the strange problems I had.

- - -- System Information:
Debian Release: 5.0.1
  APT prefers oldstable
  APT policy: (500, 'oldstable'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.9-023stab052.4-smp (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJNG+bAAAoJECZ8myNlGwU12LYH/3lIkDgdJet9J4XNGspzyAwA
WSj2y+IC7wz8mDdLks7SyTOmh/89W/j01pexsl5gMyh06N/cFde8WIgIAkSq7H4j
iBS3iy5AnnXyqYVt2EdYUAHf6kL3plVTczBs2NwhyipYWwdqg7GNUo4qxXwMMuRC
UepoOjoQ0cxeBj3QBTMdSWvRcXOCp7ZWgxAMXOPnWHGEfGnKwu8456YUkf+Ui/nc
OYEfdUMtIbDsaotdQcJmdcy8hU5DbR+yqNzQqvi5YJDGSYaVbf4XsL+iBugjJ3Eo
vEV7u33yTELe8nI+lJ3mQe1cfJ2Gq3/7yk5GaMi3hXewpOqabi0C44RSQsHAXCw=
=xpKu
-----END PGP SIGNATURE-----


Reply to: