Question
What are the default permissions of /home and /home/$user?
Answer
The default permissions of /home should be set to 0711, and owned by root. An example of these permissions can be seen below:
# stat /home
File: ‘/home’
Size: 139 Blocks: 0 IO Block: 4096 directory
Device: fd01h/64769d Inode: 78978 Links: 8
Access: (0711/drwx--x--x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2021-02-04 11:52:31.857681820 -0600
Modify: 2021-02-04 09:24:47.420272995 -0600
Change: 2021-02-04 11:59:19.642630641 -0600
Birth: -
The default permissions of /home/$user should be set to 0711, and owned by $user. An example of these permissions can be seen below:
# stat /home/cptest/
File: ‘/home/cptest/’
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: fd01h/64769d Inode: 65012584 Links: 20
Access: (0711/drwx--x--x) Uid: ( 1001/ cptest) Gid: ( 1003/ cptest)
Access: 2020-12-02 08:39:08.483794316 -0600
Modify: 2021-01-18 14:02:38.574255646 -0600
Change: 2021-01-28 05:27:09.937115519 -0600
Birth: -