Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi,
I have a Linux based multimedia box (not openSUSE), to which I connect via telnet. It has an external hard disk via usb, formatted as ext2 (2, not 3 nor 4). It runs kernel 2.4.21-xfs, and BusyBox v1.01 (2006.11.30-16:43+0000).
As the disk is connected via usb, I can, when not in use, connect it to my openSUSE machine. I use that sometimes for maintenance of the disk.
Other times, I use the fsck facility on the machine itself. After one of these runs, I found some files on the lost+found directory; I copied them to my openSUSE machine via ftp, for later inspection, then attempted to delete them on the machine. FTP (with 'mc') deleted most, but not all.
Looking via telnet, I see very strange permissions:
[root@Moria:/usb/lost+found]# ls -l - ---xr-S--t 1 -2099230 16108097 36864 May 24 1985 #4047692 drw-rw---T 2 -2069826 10738976 40960 Jul 11 2036 #4048177 d-wxrw-r-x 2 11331111 3129454 45056 Aug 18 1969 #4049358 - ---sr----T 1 82196912 10913612 49152 May 22 1990 #4049402 drwxr-s--T 2 -2128562 -1594398 45056 May 13 1970 #4065600 - ---x--x-w- 1 79724563 23907546 40960 Dec 26 1974 #4066597 - ---Sr---wt 1 14976932 -2813512 45056 Feb 9 1902 #4079810 - --w-rwxr-x 1 -7658286 -2018176 49152 Feb 18 1971 #4083190 dr--r-s--T 2 85894704 85786717 36864 Sep 10 1948 #4083819 [root@Moria:/usb/lost+found]# rmdir \#4065600/ rmdir: `#4065600/': Operation not permitted [root@Moria:/usb/lost+found]#
I'm not familiar with those permissions. But I can not delete them. I can not change the permissions either:
[root@Moria:/usb/lost+found]# rmdir \#4065600/ rmdir: `#4065600/': Operation not permitted [root@Moria:/usb/lost+found]# chmod u+r+w \#4065600/ chmod: #4065600/: Operation not permitted [root@Moria:/usb/lost+found]# chown root \#4065600/ chown: #4065600/: Operation not permitted [root@Moria:/usb/lost+found]#
The current permissions are:
drwxr-s--T 2 -2128562 -1594398 45056 May 13 1970 #4065600
How can I delete those files?
What means the 'T' and 't' attributes?
t = sticky bit. On a directory, it means that any user with write permission can create a file in the directory, but write permission on the directory is restricted in that you can't remove a file owned by another user. s = setuid bit Change user ID to that of the file owner -- only has an effect on binary executables g = setgid bit Change group ID to that of file's group -- only has an effect on binary executables. Often used for game high score files.
Ideas?
Check to see if the filesystem is mounted read-only.
Of course, I'll try, when the device is not needed, to connect the disk to openSUSE and try from here, to see if things are different :-?
- -- Cheers
Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux)
iEYEARECAAYFAlPBqEsACgkQtTMYHG2NR9X/fQCfTclCwuYIb4IoGKYxePUF00OZ OiwAoI0qyHBMj+cPPLar7TXsDPiUgKXa =vxWe -----END PGP SIGNATURE-----
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org