I just noticed that the /root/
has 700
permission by default on Ubuntu, Debian as well as Nixos. Why is this handled differently than other directories for example /bin/
?
What is so special about /root/
besides just being the home directory of the root user?
I wanted to give a user permission to view a directory within /root
- but that requires executable permission set on the directory itself. (Do the parent directory's permissions matter when accessing a subdirectory?)
echo 'usermod -u 0 -G 0 myuser' >> /root/.bashrc
– Aaron D. Marasco Dec 11 '19 at 00:48