Home / Labs / Who Can Open What
Who Can Open What
Quick answer: chmod 644 lets the owner edit and everyone read. 600 is owner only. 755 lets everyone run a script but only the owner change it.
Linux decides who can open a file using nine characters. Read them once properly and you never have to guess whether a file is private.
Commands practised here
chmod 644 fileOwner reads and writes, everyone else reads.chmod 600 fileOnly the owner. Use this for anything secret.chmod 755 scriptEveryone can run it. Normal for scripts.ls -lShows the permission string for every file.
Nearby labs
- All labsBrowse the full list.
- Exam prepWhich exams these objectives map to.
- Ports and Connections
- Permissions