Lesson 5 of 6
Permissions & Users
Every file has permissions: who can read, write, or execute it. Use chmod to change permissions. On servers, you often need to set the right permissions for web files to work correctly.
TERMINAL
# Show file permissions
ls -la
# Make a file executable
chmod +x script.sh
# Give read/write/execute to owner, read to others
chmod 755 file.php
# Change file owner
chown user:group file.txt