[SOLVED] Root catalogue is writable for all.

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
User avatar
Rademes
Level 1
Level 1
Posts: 22
Joined: Sun Nov 22, 2015 8:38 am
Location: Latvia

[SOLVED] Root catalogue is writable for all.

Post by Rademes »

Good day!
After running sudo ufw status verbose, I got warnings: / is is writable for all, / is writable for group
warn.png
I checked the permissions for /, and yes, / catalogue has drwxrwxrwx permissions.
root_rwx.png
Is it normal? I have not changed its permissions at all. Maybe Timeshift application did something?
Last edited by Rademes on Sun Jul 28, 2019 9:37 am, edited 2 times in total.

User avatar
Flemur
Level 17
Level 17
Posts: 7615
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Root catalogue is writable for all.

Post by Flemur »

Rademes wrote:
Sat Jul 27, 2019 12:20 pm
Is it normal?
I don't think so, mine looks like:

Code: Select all

$ ls -alh /
total 108K
drwxr-xr-x  24 root root 4.0K Jul 22 11:20 .
drwxr-xr-x  24 root root 4.0K Jul 22 11:20 ..
drwxr-xr-x   2 root root 4.0K Jul 18 07:17 bin
drwxr-xr-x   3 root root 4.0K Jul 22 11:20 boot
drwxr-xr-x   2 root root 4.0K May 26 07:26 cdrom
drwxr-xr-x  19 root root 4.2K Jul 27 07:21 dev
drwxr-xr-x 143 root root  12K Jul 26 06:54 etc
drwxr-xr-x   3 root root 4.0K Jun  4 18:55 home
IIRC, you can mess things up by changing system permissions, but I would at least fix it for "/" itself.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?

gm10
Level 20
Level 20
Posts: 11000
Joined: Thu Jun 21, 2018 5:11 pm

Re: Root catalogue is writable for all.

Post by gm10 »

Timeshift doesn't do this. Maybe that anti-virus that I see a folder of?

Anyway, to fix:

Code: Select all

sudo chmod 0755 /
Tune up your LM 19+: ppa:gm10/linuxmint-tools

User avatar
Rademes
Level 1
Level 1
Posts: 22
Joined: Sun Nov 22, 2015 8:38 am
Location: Latvia

Re: Root catalogue is writable for all.

Post by Rademes »

Thank you!
One question, why sudo chmod 0755 / but not sudo chmod 755 / ? What does that zero before 7 do?

gm10
Level 20
Level 20
Posts: 11000
Joined: Thu Jun 21, 2018 5:11 pm

Re: Root catalogue is writable for all.

Post by gm10 »

Rademes wrote:
Sat Jul 27, 2019 5:29 pm
One question, why sudo chmod 0755 / but not sudo chmod 755 / ? What does that zero before 7 do?
It's the same thing, if you don't write it it's assumed, I just like to write it out.

By the way, you can answer such questions yourself by checking the manual, that's what it's there for and you should usually take it over some random poster's explanation on the forums who may or may not know what they're talking about: ;)

Code: Select all

$ man chmod
[...]
       A  numeric  mode  is from one to four octal digits (0-7), derived by adding up the bits with values 4, 2, and 1.  Omitted
       digits are assumed to be leading zeros.  The first digit selects the set user ID (4) and set group ID (2) and  restricted
       deletion  or sticky (1) attributes.  The second digit selects permissions for the user who owns the file: read (4), write
       (2), and execute (1); the third selects permissions for other users in the file's group, with the same  values;  and  the
       fourth for other users not in the file's group, with the same values.
[...]
Tune up your LM 19+: ppa:gm10/linuxmint-tools

Post Reply

Return to “Software & Applications”