Beginner
Package: coreutils
chmod
Change file and directory permissions.
Syntax
chmod [options] mode file
Description
chmod sets the read, write and execute permissions for a file's owner, group and everyone else, using either symbolic notation (u+x) or octal notation (755).
Examples
chmod 644 file.txt
Owner can read/write, group and others can only read
chmod 755 script.sh
Owner has full control, group/others can read and execute
chmod -R g+w /shared
Recursively give the group write access to a directory tree
Applies to
Put it into practice