Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.