Skip to contentSkip to conversation

Directory becomes sticky socket?

linux-lvm Chad C. Walstrom 4 participants 5 messages Feb 4, 2002 – Feb 5, 2002

lore
Share & tools
lore
#0 lore raw

[Note: Please include me in the Cc: of your reply, for expediency's sake.]

I'm not sure how this came about, but I cannot remove the directory /usr/share/doc/libldap2.

    [09:36:47] chewie@skuld (505)$ ls -lad libldap2 
    s-w--w---T  16806 236536206 1076048101 1084824775 Oct  1  2004 libldap2=
    [09:36:52] chewie@skuld (506)$ file libldap2
    libldap2: sticky socket
    [09:36:58] chewie@skuld (507)$ sudo rm -rf /usr/share/doc/libldap2
    rm: cannot unlink `/usr/share/doc/libldap2': Operation not permitted

System: Debian unstable (Sid)
Kernel: 2.4.17-k7
Filesystem: ext3 on an LVM logical volume (no extra patches to the kernel, vanilla 2.4.17).

I've tried removing it while root as well with no success. I've tried using fsck.{ext2,ext3} with no avail. I relize that I'm going to have to do something fairly low-level to the FS to recover this problem. Any pointers or suggestions you may have would be quite welcome.

Thanks.

Signature · 3 lines
Chad Walstrom <[email protected]>                 | a.k.a. ^chewie
http://www.wookimus.net/                            | s.k.a. gunnarr
Get my public key, ICQ#, etc. $(mailx -s 'get info' [email protected])
#1 lore raw
Quoted 15 lines

I'm not sure how this came about, but I cannot remove the directory /usr/share/doc/libldap2.

    [09:36:47] chewie@skuld (505)$ ls -lad libldap2 
    s-w--w---T  16806 236536206 1076048101 1084824775 Oct  1  2004 libldap2=
    [09:36:52] chewie@skuld (506)$ file libldap2
    libldap2: sticky socket
    [09:36:58] chewie@skuld (507)$ sudo rm -rf /usr/share/doc/libldap2
    rm: cannot unlink `/usr/share/doc/libldap2': Operation not permitted

System: Debian unstable (Sid)
Kernel: 2.4.17-k7
Filesystem: ext3 on an LVM logical volume (no extra patches to the kernel, vanilla 2.4.17).

Quoted 4 lines

I've tried removing it while root as well with no success. I've tried using fsck.{ext2,ext3} with no avail. I relize that I'm going to have to do something fairly low-level to the FS to recover this problem. Any pointers or suggestions you may have would be quite welcome.

I think: Use "ls -li" to find the object's inode. Then use debugfs to clear the object's inode. Then fsck it to clear up any hanging bits in the FS.

Bill

#2 lore raw
In reply to Chad C. Walstrom
Quoted 17 lines · Chad C. Walstrom

[Note: Please include me in the Cc: of your reply, for expediency's sake.]

I'm not sure how this came about, but I cannot remove the directory /usr/share/doc/libldap2.

    [09:36:47] chewie@skuld (505)$ ls -lad libldap2 
    s-w--w---T  16806 236536206 1076048101 1084824775 Oct  1  2004 libldap2=
    [09:36:52] chewie@skuld (506)$ file libldap2
    libldap2: sticky socket
    [09:36:58] chewie@skuld (507)$ sudo rm -rf /usr/share/doc/libldap2
    rm: cannot unlink `/usr/share/doc/libldap2': Operation not permitted

System: Debian unstable (Sid)
Kernel: 2.4.17-k7
Filesystem: ext3 on an LVM logical volume (no extra patches to the kernel, vanilla 2.4.17).

Quoted 4 lines

I've tried removing it while root as well with no success. I've tried using fsck.{ext2,ext3} with no avail. I relize that I'm going to have to do something fairly low-level to the FS to recover this problem. Any pointers or suggestions you may have would be quite welcome.

# chattr -i /usr/share/doc/libldap2
# rm -r /usr/share/doc/libldap2

If the dir /usr/share/doc/libldap2 contains more borked files, provide a "-R" to chattr.

Signature · 3 lines
Nathan Norman - Staff Engineer | A good plan today is better
Micromuse Ltd.                 | than a perfect plan tomorrow.
mailto:[email protected]   |   -- Patton
#3 lore raw
In reply to Chad C. Walstrom

Chad,

check for processes having the socket open, stop them and retry. An optional "chmod o-t /usr/share/doc/libldap2" may be necessary.

Quoted 28 lines · Chad C. Walstrom

[Note: Please include me in the Cc: of your reply, for expediency's sake.]

I'm not sure how this came about, but I cannot remove the directory /usr/share/doc/libldap2.

    [09:36:47] chewie@skuld (505)$ ls -lad libldap2 
    s-w--w---T  16806 236536206 1076048101 1084824775 Oct  1  2004 libldap2=
    [09:36:52] chewie@skuld (506)$ file libldap2
    libldap2: sticky socket
    [09:36:58] chewie@skuld (507)$ sudo rm -rf /usr/share/doc/libldap2
    rm: cannot unlink `/usr/share/doc/libldap2': Operation not permitted

System: Debian unstable (Sid)
Kernel: 2.4.17-k7
Filesystem: ext3 on an LVM logical volume (no extra patches to the kernel, vanilla 2.4.17).

I've tried removing it while root as well with no success. I've tried using fsck.{ext2,ext3} with no avail. I relize that I'm going to have to do something fairly low-level to the FS to recover this problem. Any pointers or suggestions you may have would be quite welcome.

Thanks.

Signature · 3 lines
Chad Walstrom <[email protected]>                 | a.k.a. ^chewie
http://www.wookimus.net/                            | s.k.a. gunnarr
Get my public key, ICQ#, etc. $(mailx -s 'get info' [email protected])
Signature · 15 lines
Regards,
Heinz    -- The LVM Guy --

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
[email protected]                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#4 lore raw
Quoted 2 lines · Heinz J . Mauelshagen

Chad, check for processes having the socket open, stop them and retry. An optional "chmod o-t /usr/share/doc/libldap2" may be necessary.

I should have done that first, I suppose. I did end up shutting down to single user mode, unmounting the logical volume, and using debugfs to clear the inode (which still reported the file as being a socket). This actually happend to one other file, and a third was a corrupted symbolic link of some kind. Regardless, with these three files cleared, fsck.ext3 happily cleared dtime's and reset inode sizes until I had a working system again. Thanks to all who sent me suggestions.

Signature · 3 lines
Chad Walstrom <[email protected]>                 | a.k.a. ^chewie
http://www.wookimus.net/                            | s.k.a. gunnarr
Get my public key, ICQ#, etc. $(mailx -s 'get info' [email protected])