/usr is group writable

Post Reply
Helmut
Posts: 15
Joined: Sat Jul 21, 2018 5:51 pm
languages_spoken: english
Contact:

/usr is group writable

Unread post by Helmut » Wed Nov 07, 2018 2:45 pm

On my last update, I noticed the following warning when installing ppp:

Code: Select all

WARN: uid is 0 but '/usr' is owned by 1000
WARN: /usr is group writable!
I checked and indeed, /usr is owner by odroid and group writable:

Code: Select all

ls -l /
...
drwxrwxr-x  10 odroid odroid     4096 Apr 12  2018 usr
...
Here someone says there should only be read & execute permissions for group on /usr and the folder should be owned by root.
Is there any reason behind this? Will I run into trouble if I do

Code: Select all

chown root:root /usr 
and

Code: Select all

chmod g-w /usr
?
Last edited by Helmut on Mon Dec 10, 2018 3:40 pm, edited 1 time in total.

User avatar
mad_ady
Posts: 5089
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1
Location: Bucharest, Romania
Contact:

Re: /usr is group writable

Unread post by mad_ady » Wed Nov 07, 2018 3:15 pm

No, it should be perfectly safe. There's no reason to have it owned by odroid.
The directories below /usr should be mostly owned by root too.

Helmut
Posts: 15
Joined: Sat Jul 21, 2018 5:51 pm
languages_spoken: english
Contact:

Re: /usr is group writable

Unread post by Helmut » Wed Nov 07, 2018 3:42 pm

Many thanks! I just executed the two commands and there was no problem on reboot, things look good and my odroid is perhaps a little bit more safe.

Post Reply

Return to “CloudShell”

Who is online

Users browsing this forum: No registered users and 2 guests