/usr is group writable

Moderators: mdrjr, odroid

/usr is group writable

Unread postby 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 -R root:root /usr
and
Code: Select all
chmod -R g-w /usr
?
Helmut
 
Posts: 11
Joined: Sat Jul 21, 2018 5:51 pm
languages_spoken: english

Re: /usr is group writable

Unread postby 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.
User avatar
mad_ady
 
Posts: 4717
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: /usr is group writable

Unread postby 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.
Helmut
 
Posts: 11
Joined: Sat Jul 21, 2018 5:51 pm
languages_spoken: english


Return to CloudShell

Who is online

Users browsing this forum: No registered users and 1 guest