On 2014-07-12 23:27 (GMT+0200) Carlos E. R. composed:
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?
I think I have almost the exact same problem on multiple settop boxes (with slightly newer kernels than yours) on occasion, normally trying to copy over existing files, not trying to delete. I login on the STB and delete the existing files MC gets hung on using Telnet, and after deleting that way, put or copy the files with MC. This may be a question best posed to the MC user list.
What means the 'T' and 't' attributes?
http://en.wikipedia.org/wiki/Sticky_bit -- "The wise are known for their understanding, and pleasant words are persuasive." Proverbs 16:21 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org