File security Flashcards
chmod 700 file
Protects a file against any access from other users, while the issuing user still has full access.
chmod 600 file
A private file only changeable by the user who entered this command.
Access Mode Code - 4 / r
read access is granted to the user category defined in this place
chmod 755 directory
For files that should be readable and executable by others, but only changeable by the issuing user.
Access Mode Code - 0 / -
The access right that is supposed to be on this place is not granted.
User group code - g
group permission
chmod 777 file
Everybody can do everything to this file.
file permission format
eg.
- rw-r–r–
- rwxrwxrwx
User group code - u
user permission
chmod 500 directory
To protect yourself from accidentally removing, renaming or moving files from this directory.
Access Mode Code - 2 / w
write permission is granted to the user category defined in this place
chmod 775 file
Standard file sharing mode for a group.
Access Mode Code - 1 / x
execute permission is granted to the user category defined in this place
chmod 660 file
Users belonging to your group can change this file, others don’t have any access to it at all.
chmod 400 file
To protect a file against accidental overwriting.