LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-08-2007, 07:05 PM   #1
paranoid times
Member
 
Registered: Jan 2005
Distribution: Fedora Core 3, 4
Posts: 135

Rep: Reputation: 16
symbolic link with no pointer


I've got a symbolic link which has no pointer. It is causing a bunch of warnings to pop up in a tar run so I want to remove it. However it has other ideas on this matter:

[root@everglades 3]# ls -l exe
ls: cannot read symbolic link exe: No such file or directory
lrwxrwxrwx 1 root root 0 Aug 8 16:44 exe
[root@everglades 3]# file exe
exe: unreadable symlink `exe' (No such file or directory)
[root@everglades 3]# rm exe
rm: remove symbolic link `exe'? y
rm: cannot remove `exe': Permission denied
[root@everglades 3]# whoami
root

Any ideas?

Thank you much,
Michael
 
Old 08-08-2007, 07:12 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Try
man setattr
man chattr
HTH
 
Old 08-08-2007, 07:25 PM   #3
paranoid times
Member
 
Registered: Jan 2005
Distribution: Fedora Core 3, 4
Posts: 135

Original Poster
Rep: Reputation: 16
That's a good idea I didn't think to check the attributes. Unfortunately it isn't letting me.

[root@everglades 3]# lsattr exe
lsattr: No such file or directory While reading flags on exe
[root@everglades 3]# lsattr stat
lsattr: Inappropriate ioctl for device While reading flags on stat

These are all in a proc file system (/var/named/chroot/proc) maybe that has something to do with it?
 
Old 08-08-2007, 08:36 PM   #4
dxqcanada
Member
 
Registered: Sep 2006
Location: Canada
Distribution: Gentoo
Posts: 702

Rep: Reputation: 43
Have you tried the unlink command ?
 
Old 08-08-2007, 10:35 PM   #5
paranoid times
Member
 
Registered: Jan 2005
Distribution: Fedora Core 3, 4
Posts: 135

Original Poster
Rep: Reputation: 16
No such luck.

[root@everglades 3]# unlink exe
unlink: cannot unlink `exe': Permission denied

It is strange sometimes it just says permission denied, but other times it claims that it doesn't exist:

[root@everglades 3]# touch exe
touch: cannot touch `exe': No such file or directory


Thank you for the input though.
 
Old 08-11-2007, 04:11 PM   #6
paranoid times
Member
 
Registered: Jan 2005
Distribution: Fedora Core 3, 4
Posts: 135

Original Poster
Rep: Reputation: 16
Figured it out, well mostly anyways.

named copies /proc into /var/named/chroot/proc every time it starts. So long as bind is running all of the chroot/proc is immutable. If bind it turned off chroot/proc can be removed. However as soon as bind is back on, there is a new copy there that is again immutable. the exe file that I was trying to remove was a part of one of the pid directories in /proc. I don't fully understand what everything in the pid directories do, but that is what it was.

In my case the solution was to exclude chroot/proc from my tar run (that was my whole problem is it was printing 70 lines of warnings that I didn't want.)

Interesting stuff.
Thank you everyone for your help.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Not a symbolic link ?? attockonian Linux - Newbie 4 06-30-2006 08:09 PM
What is a Symbolic Link? little_penguin Linux - Software 2 05-14-2005 09:27 AM
Symbolic link? jasone Linux - Newbie 4 05-06-2005 07:55 AM
symbolic link jsetter Linux - Newbie 4 11-22-2004 07:18 AM
Symbolic link bwaynej2002 Linux - General 8 08-25-2003 10:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration