Recap - Lock It Down
Part of the Fundamentals section of Coddy's Terminal journey — lesson 58 of 82.
Challenge
EasyYou have two files that need their permissions secured:
backup.sh- A script that should be executable by the owner, readable and executable by the group, but only readable by others (permission754)config.txt- A sensitive configuration file that should only be readable and writable by the owner, with no access for group or others (permission600)
Use chmod with numeric mode to set the correct permissions on both files. Then display the permissions of both files using ls -l to verify your changes.
Your final output should show:
backup.shwith permissions-rwxr-xr--config.txtwith permissions-rw-------
Hint: Run
chmod 754 backup.shandchmod 600 config.txt, then usels -lto display both files.
Try it yourself
Terminal
All lessons in Fundamentals
4Directories
Create A DirectoryCopy A DirectoryMove And Rename A DirectoryDelete A DirectoryRecap - Directory Operations7File Content
Head And TailWord CountSort CommandUnique CommandGrep BasicsGrep With FlagsRecap - Text Detective2Navigation
Print Working DirectoryList FilesChange DirectoryAbsolute vs Relative PathsHome And Root DirectoryRecap - Find Your Way8Redirection
Standard OutputOverwrite To A FileAppend To A FileStandard InputStandard ErrorRecap - Log Builder11Permissions
Understanding PermissionsReading PermissionsChmod With NumbersChmod With SymbolsFile OwnershipRecap - Lock It Down6Wildcards And Patterns
The Star WildcardThe Question Mark WildcardBracket WildcardsCombining WildcardsRecap - Selective Operations9Piping
What Is A PipeChaining Two CommandsChaining Multiple CommandsPipe With GrepRecap - Data Pipeline