Linux Survival
Search
Primary Menu
Skip to content
Home
Blog
Testimonials
Linux Links
Command List
Contact
Search for:
Linux Survival
The command you use to change the security permissions on files has a horribly cryptic name. It's called "chmod", which stands for "change mode", because the nine security characters are collectively called the security "mode" of the file. Now it will become clear why we named the three "rwx" sets "user", "group", and "other". The first argument you give to the "chmod" command is 'u', 'g', 'o', or a combination of them which specifies which of the three "rwx" sets you want to modify. For example, if you want to give "execute" permission to the world ("other") for file "gorillas", you would start by typing chmod o Now you would type a '+' to say that you are "adding" a permission. chmod o+ Then you would type an 'x' to say that you are adding "execute" permission. chmod o+x Finally, specify which file you are changing. chmod o+x gorillas You can also change multiple permissions at once. For example, if you want to take all permissions away from everyone, you would type chmod ugo-rwx gorillas Click the right arrow to continue.
Page 26
Where learning Linux is easy
Module 1 Introduction
Directory Structure
List Directory
View File Contents
Create Directory
Move and Rename File
Change Directory
Get Current Location
Quiz 1
End of Module 1
Module 2 Introduction
Pathnames
Copy File
Remove File
Remove Directory
File Security
Change File Permissions
Wildcards
Groups Memberships
Quiz 2
End of Module 2
Module 3 Introduction
Home Directories
Manual Pages
User Information
Find File
Concatenate Files
Redirect Output
Print
Print Job Status
Cancel Print Job
Quiz 3
End of Module 3
Module 4 Introduction
Copy Tree
Disk Space
Remove Tree
Process Status
Pipe Output
Pattern Matching
Kill Process
Quiz 4
Conclusion