CustomBuild updates resets permission on /home

Erulezz

Verified User
Joined
Sep 14, 2015
Messages
957
Location
🇳🇱
Recently I noticed that sometimes the permissions on the /home directory keeps resetting to 755 and I couldn't figure out why. Today I tested it with CB updates and after ./build mariadb the permissions are reset to 755 from 711.

CentOS 8.4, before the updates:

stat /home
Access: (0711/drwx--x--x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2021-06-26 04:29:01.048878547 +0200
Modify: 2020-11-03 16:22:25.000000000 +0100
Change: 2021-06-06 14:13:03.848594363 +0200

Then I did this:

1002 26/06/21 15:58:52 stat /home
1003 26/06/21 15:59:18 custombuild
1004 26/06/21 15:59:19 ./build update
1005 26/06/21 15:59:28 ./build version
1006 26/06/21 15:59:29 ./build versions
1007 26/06/21 15:59:34 ./build lego

After building lego permissions are still correct, 711

1008 26/06/21 15:59:39 ./build versions
1009 26/06/21 15:59:45 stat /home
1010 26/06/21 15:59:50 uptime

Permissions here are still 711 on /home

1011 26/06/21 16:01:30 ./build mariadb
1012 26/06/21 16:02:52 ./build version
1013 26/06/21 16:02:53 ./build versions
1014 26/06/21 16:03:10 stat /home

And now permissions on /home are:

Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2021-06-26 04:29:01.048878547 +0200
Modify: 2020-11-03 16:22:25.000000000 +0100
Change: 2021-06-26 16:02:36.968455091 +0200

This isn't expected behaviour is it? After I run the set_permissions.sh script the permissions are again back to 711.
 
Back
Top