1.

Solve : help under standing permission?

Answer»

I am brand new to Linux and am currently using fedora 18 I want to make a directory in the home directory using the terminal however when I try mkdir directory it telling me I don't have permission to do so. Please correct me if I am wrong but I THOUGHT the home directory was my I KNOW the root directory isn't mine. I have also try sudo mkdir directory and put in the password but it just say I don't have permission. Last thing I know I put the owner under another name put I do see that account any on my pc how do I get to it? Thank you and sorry for asking a dumb question. Quote from: runner1810 on April 06, 2013, 05:51:56 PM

I am brand new to Linux and am currently using fedora 18 I want to make a directory in the home directory using the terminal however when I try mkdir directory it telling me I don't have permission to do so. Please correct me if I am wrong but I thought the home directory was my I know the root directory isn't mine. I have also try sudo mkdir directory and put in the password but it just say I don't have permission. Last thing I know I put the owner under another name put I do see that account any on my pc how do I get to it? Thank you and sorry for asking a dumb question.

This link here will be a great place to learn. http://www.tuxfiles.org/linuxhelp/filepermissions.html

I will break it down SOMEWHAT for you so you can get a better understanding but that article will help you.

R=Read
W=WRITE
X=execute

So lets say you you see a file that says Dir rwx-rwx-rwx

The first section where it says rwx is for the owner of the file. which means the owner can Read, Write, and execute the file.

The second section where it says rwx is for the users of the group of that file can Read, Write, and execute the file.

the 3rd section were it says rwx means the public can Read, Write, and execute the file. Which is dangerous

So lets says you got a file that says foo.txt rwx-w-r This means that only the owner can Read, Write, and execute the file, the users of that GROUPS can only Write to the file, and the world can only read the file.

I hope that makes sense. If you see rwx-rwx-rwx that is not a good thing setting them to rwx-rw-r will be a good permission. good luck.



Discussion

No Comment Found