DebianThis forum is for the discussion of Debian Linux.
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 installed an older version of Snort, uninstalled it and tried to install the latest version as root using sudo. However, the install crashed because root does not have permission to change or remove /var/log/snort. I thought root was supposed to have permuission to do anything. At least it should IMO.
This may not be the issue, but to be sure, check the attributes of the files/directory you are experiencing trouble with:
Code:
lsattr FILE
You can use chattr(1) to modify attributes.
See the chattr manpage for more information about attributes. I'd bet that it has the immutable attribute set and that is what is preventing root from removing it.
This may not be the issue, but to be sure, check the attributes of the files/directory you are experiencing trouble with:
Code:
lsattr FILE
You can use chattr(1) to modify attributes.
See the chattr manpage for more information about attributes. I'd bet that it has the immutable attribute set and that is what is preventing root from removing it.
Thank you for your reply. I used lsattr and the one thing that /var/log/snort, and all of its contents have in common is that they all have the e bit set. I tried
For removing directories forcefully, use the -f option of rm.
Code:
sudo rm -rf /var/log/snort
Other commands to investigate what's wrong:
Code:
lsof | grep snort
ls -al /var/log | grep snort
However, I concur that upgrading your Ubuntu, or even switching to a different distro, is the preferred option...
Unfortunately
Code:
sudo rm -rf /var/log/snort
did not work, even after rebooting and going into restore mode. I think I will look into replacing Ubuntu with a different OS. Can you recommend a free Linux or Unix distro that does not have this problem?
Probably due to a combination of not using that particular Linux distributions features like they would like to see you do ('sudo rm -rf /var/log/snort'), plus providing incomplete information plus not getting the "right" information what you have effectively done is cross-posting your issues on the topic across three (see here and here) if not more threads. That is neither acceptable or efficient.
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed as a duplicate of http://www.linuxquestions.org/questi...ed-4175462943/.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.