Quote:
Here is an output example when I run ls -l
drwx------ 24 user1 user1 4096 Dec 7 21:00 folder1
drwxrwxrwx 6 user1 user1 4096 Apr 18 20:36 folder2
I am able to browse folder2 just fine but not folder1 unless I open my file manager with sudo.
|
Which user account are you using to access folder1? If it is user1 then I doubt you will have any trouble accessing folder1. However, if you are using any other account to access folder1 then it will get blocked because the permission is set to 700 which mean only owner has got full access, group and other have no access to it. That is the reason you have to use sudo to get into folder1.
You are able to get into folder2 without any issues because permissions on folder2 is set to 777 which means owner, group and others have got full access to folder2 and anyone can get in.
Quote:
Is there a way to somehow grant myself access to everything? It's my system and I want to view all files on the system. I should be able to get into folder1 without having to fire up the file manager using sudo.
|
It appears to me that folder1 and folder2 both are under user1 home directory. Granting other account access to it is not a good deal in real world scenarios. Usually when such requirements come we go with setting up sgid on a shared folder located outside users home directory.
As this is your test server or the server on which you are trying to do R&D you have got two options:
1. Setup ACL, which is kind of messy if you are trying to set it up on multiple directories. Basically troubleshooting file permission issues with ACL on will drive you crazy.
2. Give permission to others, I wouldn't suggest giving write permission but just allow browsing. You can do that by executing the following command:
Code:
sudo chmod -R 755 folder1
Running with -R so that any folders under folder1 will also get same permission recursively.