User Privilege on Linux
Everybody has his/her own private area. We can also find something like that when we work with computer. There are files/folders that contain something secret so that other people may not access additionally modify them. Based on this condition, it's important to create mechanism to regulate who can see, who can modify those files. We called it User Privilege.
User Privilege manage who can access what and how files can be accessed. In Linux operating system there are 3 types of user privilege known as r-w-x. r from read (similar to read-only on Microsoft Windows operating system), w from write and x from eXecute. As its name, file/folder with attribute read, except file owner and root can modified that file/folder. Why root can modified file/folder with attribute read? Ya, because root is the most powerful user (super user) in Linux operating system so he can do everything with the system include destroy it.
So, what's different between eXecute and read? We can say both of them have attribute to see (only see) file/folder. But, usually attribute read is used on readable files such as odt, txt, pdf, etc. whereas attribute eXecute is used on executable file (like .exe on Windows).
Now, how we can change user privilege (give an attribute r-w-x on file/folder)? Make sure, you have user name and password to login to Linux system.
- Login to your Linux system.
- Go to folder from file manage like Nautilus /home/user-name and make one folder by pressing Shift+Ctrl+N
- Right click on that folder and choose Properties
- Click on tab Permissions.
- There are 3 categories, Owner-Groups-Others
- You can change those privileges by clicking on drop-down menu. There are 3 choices like List Files Only(r), Access files(x), and Create and delete files(w).
- Besides, there are another choices for you on applied those attribute only on file, folder or both.
- To include same attribute on folder's content you should click on Apply Permissions to Enclosed Files.