Results 1 to 3 of 3
So, I'm trying to do a task which in WINDOWS is really frick'n simple: I'm trying to change the file permissions on a folder which I happen to own since ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 07-06-2009 #1
- Join Date
- Jul 2009
Changing file/folder permissions when Ubuntu says you are not root but you really are
- 07-06-2009 #2
When you use Ubuntu, or really any Linux system you are not logged in as root. You are logged in as a user for security reasons. It is one of the problems that Windows has built into itself.
If you want to change file permissions by clicking on them and editing them yourself it only takes an extra step which I can understand be frustrating if you do not know that step.
open up a terminal by going to
Applications -> Accessories-> Terminal
In the terminal type
- 07-06-2009 #3
- Join Date
- Jun 2009
If root is the owner of the file, you are not the owner of the file. You can also change them if you read about this for a minute and use chmod - for example:
chmod 0700 file- permissions: read/write/execute for you, nothing for group, nothing for others.
chmod 0766 file- permissions: read/write/execute for you, read/write for group, read/write for others. The group being the group you belong to - the numbers being a combination. 4 = read, 2 = write, 1 = execute.
If root is the owner of the file, you can use sudo chown:
sudo chown you:yourgroup file
It only takes a second, and if you can't chmod the file it isn't technically yours. It could belong to root. You as a user are not the owner. You have to use sudo or sudo chown to make it yours. If you do, you won't have to worry about it again.
It's really not a hassle.
ls -l will show you the current ownership and permissions.