Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can delete symlink

Status
Not open for further replies.

thedaver

IS-IT--Management
Jul 12, 2001
2,741
US
I'm confused. I'm just deleting another symlink placed by the default Debian install. But they won't delete...

Code:
pier1:/etc/rc2.d# ls -l
total 0
lrwxrwxrwx  1 root root 18 Sep 11  2003 S10sysklogd -> ../init.d/sysklogd
lrwxrwxrwx  1 root root 15 Sep 11  2003 S11klogd -> ../init.d/klogd
lrwxrwxrwx  1 root root 13 Sep 11  2003 S14ppp -> ../init.d/ppp
lrwxrwxrwx  1 root root 14 Sep 11  2003 S20exim -> ../init.d/exim
lrwxrwxrwx  1 root root 15 Sep 11  2003 S20inetd -> ../init.d/inetd
lrwxrwxrwx  1 root root 17 Sep 11  2003 S20makedev -> ../init.d/makedev
lrwxrwxrwx  1 root root 19 Sep 28  2005 S20pppstatus -> ../init.d/pppstatus
lrwxrwxrwx  1 root root 15 Sep 28  2005 S20rsync -> ../init.d/rsync
lrwxrwxrwx  1 root root 15 Dec  6  2003 S20samba -> ../init.d/samba
lrwxrwxrwx  1 root root 13 Sep 11  2003 S20ssh -> ../init.d/ssh
lrwxrwxrwx  1 root root 16 Sep 28  2005 S20vsftpd -> ../init.d/vsftpd
lrwxrwxrwx  1 root root 20 Sep 28  2005 S23ntp-server -> ../init.d/ntp-server
lrwxrwxrwx  1 root root 18 Sep 22  2003 S35am-utils -> ../init.d/am-utils
lrwxrwxrwx  1 root root 13 Sep 11  2003 S89atd -> ../init.d/atd
lrwxrwxrwx  1 root root 14 Sep 11  2003 S89cron -> ../init.d/cron
lrwxrwxrwx  1 root root 19 Sep 11  2003 S99rmnologin -> ../init.d/rmnologin
lrwxrwxrwx  1 root root 23 Sep 28  2005 S99stop-bootlogd -> ../init.d/stop-bootlogd
pier1:/etc/rc2.d# rm s20exim
rm: cannot remove `s20exim': No such file or directory
pier1:/etc/rc2.d# rm -f s20exim
pier1:/etc/rc2.d# whoami
root
pier1:/etc/rc2.d# ls -l
total 0
lrwxrwxrwx  1 root root 18 Sep 11  2003 S10sysklogd -> ../init.d/sysklogd
lrwxrwxrwx  1 root root 15 Sep 11  2003 S11klogd -> ../init.d/klogd
lrwxrwxrwx  1 root root 13 Sep 11  2003 S14ppp -> ../init.d/ppp
lrwxrwxrwx  1 root root 14 Sep 11  2003 S20exim -> ../init.d/exim
lrwxrwxrwx  1 root root 15 Sep 11  2003 S20inetd -> ../init.d/inetd
lrwxrwxrwx  1 root root 17 Sep 11  2003 S20makedev -> ../init.d/makedev
lrwxrwxrwx  1 root root 19 Sep 28  2005 S20pppstatus -> ../init.d/pppstatus
lrwxrwxrwx  1 root root 15 Sep 28  2005 S20rsync -> ../init.d/rsync
lrwxrwxrwx  1 root root 15 Dec  6  2003 S20samba -> ../init.d/samba
lrwxrwxrwx  1 root root 13 Sep 11  2003 S20ssh -> ../init.d/ssh
lrwxrwxrwx  1 root root 16 Sep 28  2005 S20vsftpd -> ../init.d/vsftpd
lrwxrwxrwx  1 root root 20 Sep 28  2005 S23ntp-server -> ../init.d/ntp-server
lrwxrwxrwx  1 root root 18 Sep 22  2003 S35am-utils -> ../init.d/am-utils
lrwxrwxrwx  1 root root 13 Sep 11  2003 S89atd -> ../init.d/atd
lrwxrwxrwx  1 root root 14 Sep 11  2003 S89cron -> ../init.d/cron
lrwxrwxrwx  1 root root 19 Sep 11  2003 S99rmnologin -> ../init.d/rmnologin
lrwxrwxrwx  1 root root 23 Sep 28  2005 S99stop-bootlogd -> ../init.d/stop-bootlogd
pier1:/etc/rc2.d#

And here's the folder itself from one level up the folder hierarchy:
Code:
drwxr-xr-x   2 root root     4096 Sep 28  2005 rc2.d
drwxr-xr-x   2 root root     4096 Sep 28  2005 rc3.d


I feel like I'm losing the battle. I tried to "chattr -i *" just in case someone had set these files as immutable. No difference.

Help appreciated!
D.




D.E.R. Management - IT Project Management Consulting
 
Laughing my ass off...

My terminal was using a font that made the leading "S" in the filename look lowercase. After I re-read my post I saw how goofy I was.

No wonder the file wasn't there! Mea culpa!
D.

D.E.R. Management - IT Project Management Consulting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top