File Permssions Flashcards
rwx permissions stand for
Read, write, execute
rwx rwx rwx order of permissions
User, group, other
i.e. — rwx — means Group has read, write, execute permission
chmod 777 filename
Sets permissions for “filename” to rwx rwx rwx (Use sparingly!)
chmod 775 filename
Sets permissions for “filename” to rwx rwx r-x
chmod 755 filename
Sets permissions for “filename” to rwx r-x r-x
chmod 664 filename
Sets permissions for “filename” to rw- rw- r–
chmod 644 filename
Sets permissions for “filename” to rw- r– r–
chmod write permission code
2, 3, 6, or 7
chmod read permission code
> = 4
chmod execute permission code
odd
chown john /path/to/file
Change ownership of “path/to/file” to “john”
chgrp sales /path/to/file
Change group ownership of “/path/to/file” to group “sales”