Can groups or other users have access to /root?
I deployed on a Digital Ocean's Ubuntu server a web app, but its been run in /root/appfolder.
I have tried chmod 744 /root
and also 744 permission on the specific folder inside of root, but i can't access it with my user. I want to make it possible that other developers ssh into the server and have access to the folder.
Maybe I have to create a link to that folder so that every user has it in their home directoy? Up to this point I have no clue on what the most secure or best practice should be, not to say that still I get access denied to that folder using another user even after giving it read privelage.
Solution
chmod 744 /root
gives you permission to read, not to open it (execute it). I just had to redefine permissions andchmod -R o+x /root
and its done.
Solution 1:
The permissions 744 (r-xr--r--) are wrong. It should be 755 (rwxr-xr-x).
with 744, others can see what is in the directory, but without x on the directory, they can't access anything in it.