File system permissions Flashcards
what can happens with improper filesystem permissions?
an attacker may be able to access restricted files or directories and modify or delete their contents.
User permission levels
- Owner
- Administrator
- Group access
- Global
- Individual user
Owner
The person who created the files
Administrator
The person responsible for managing and updating files, also for setting permsissions
Group Access
This allows you to designate specific groups of users and provide unique settings specific to them
Global
Provides access to all users
Individual user
Many programs allow you to create a specific level of access at the individual user level
Filesystem permission types
- Read
- Write
- Execute
Read
Users with this level can view and copy files but cannot make any changes
Write
Users with this level of permission can edit, rename and move files
Execute
a user can run a program of a type of program file
Setting file system permissions
Depending on the program or programming language being used, it is likely you can set your own levels of filesystem access.
How to change filesystem permissions
os.chmod(path, mode)
- path: a String represents the path of the file/ directory
- mode: contains different values related to permissions