So by default my /
directory is chmod 555
. I ran the following to test something out:
sudo chmod 777 /
mkdir /dss
sudo chmod 555 / # reset permissions
if I run stat /dss
then it shows
File: ‘/dss’
Size: 6 Blocks: 0 IO Block: 4096 directory
Device: 10302h/66306d Inode: 5802557 Links: 2
Access: (0755/drwxr-xr-x) Uid: ( 1001/ssm-user) Gid: ( 1002/ssm-user)
Access: 2021-06-30 22:01:44.478434800 +0000
Modify: 2021-06-30 22:01:44.478434800 +0000
Change: 2021-06-30 22:01:44.478434800 +0000
I expected /dss
to inherit 777 permissions from /
at the time it was created? And if I create any subdirectories under /dss
, they're all 755. What's happening here?