[Solved] Warnings at enabling UFW Firewall

Archived topics about LMDE 1 and LMDE 2
Locked
Allard Pruim
Level 1
Level 1
Posts: 18
Joined: Thu Mar 20, 2014 4:27 pm
Location: Westerkwartier, NL

[Solved] Warnings at enabling UFW Firewall

Post by Allard Pruim »

This day I decided to install Linux Mint Debian Edition and it works fine for so for. However when I enabled the UFW Firewall it came with some warnings.

Code: Select all

WARN: /etc is group writable!
WARN: /lib is group writable!
Should I be considered about these warnings?

Greetings,
Allard
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
karlchen
Level 23
Level 23
Posts: 18209
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: Warnings at enabling UFW Firewall

Post by karlchen »

Hello, Allard.

It is just a warning that 2 system folders grant write permissions not only to the owner of the folders, but to his whole group, too. I do not know whether this is the default on LMDE, but on Mint 13 the mentioned folder privileges are these:

Code: Select all

drwxr-xr-x 148 root root 12288 Mär 20 23:20 etc
drwxr-xr-x  22 root root  4096 Jan 23 20:29 lib
Owner: root, group: root (as a matter of fact user root will be the only member of the root group, if not I'd check who managed to join the root group)
Owner root has got all access rights on the folders.
Group and others have got read and execute permissions. (Note: execute permission on a folder means the right to list the folder content)
You might revoke write permissions on the folders /etc and /lib from the group root.

Code: Select all

sudo chmod g-w /etc /lib
Kind regards,
Karl
Image
The people of Alderaan have been bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine for 771 days now.
Lifeline
Allard Pruim
Level 1
Level 1
Posts: 18
Joined: Thu Mar 20, 2014 4:27 pm
Location: Westerkwartier, NL

Re: Warnings at enabling UFW Firewall

Post by Allard Pruim »

Well I didn't changed the permissions of the folders so it could be that this normal behavior. I did do a Google search on the errors and found someone who has the same errors.
http://blog.linuxmint.com/?p=2571

Post:

Code: Select all

François Blais Says:
February 23rd, 2014 at 2:07 pm

Installed yesterday with Cinnamon 64 bits.
Then installed the XFCE desktop. (sorry but I don’t like Cinnamon and MATE)
Getting this in a terminal:
francois@francoix ~ $ sudo ufw status
[sudo] password for francois:
WARN: /etc is group writable!
WARN: /lib is group writable!
Status: active

What about those warnings?

Thanks!
François
Edit: I applied your command, now I don't get this warnings anymore. Thanks for the help. :D

Greetings,
Allard
Locked

Return to “LMDE Archive”