Group Presentation About Creating Users and Groups
Group Presentation About Creating Users and Groups
GROUP MEMBERS:
IZUKONDI Bienvenue 22RP01823
UWIMANA Anitha 22RP01717
NIYOGISUBIZO Wilson 22RP02627
File and Directory
Permissions in Linux
Understanding file and directory permissions in Linux
Introduction to Permissions
• Permissions in Linux control the actions users can perform on files and
directories. There are three types of permissions:
• - Read (r): View the contents of the file or directory
• - Write (w): Modify the contents of the file or directory
• - Execute (x): Run the file as a program or navigate into the directory
Viewing Permissions
• Use the `ls -l` command to view the permissions of files and directories.
The output format is as follows:
• drwxr-xr-x 2 user group 4096 Jun 8 12:34 directory_name
• The first character indicates the type (d for directory, - for file).
• The next nine characters indicate the permissions in three sets (owner,
group, others).
Changing Permissions
• Use the `chmod` command to change permissions. Syntax:
• chmod [permissions] [file/directory]
• Example: chmod 755 myfile
• Common permission settings:
• - 777: Full access
• - 755: Read and execute for everyone, write for owner
Changing Ownership
• Use the `chown` command to change the owner and group of a
file or directory. Syntax:
• chown [owner]:[group] [file/directory]
• Example: chown user:group myfile
Conclusion
• Understanding and managing file and directory permissions is
crucial for system security and user management in Linux.