๐ฐDay 6 - File Permissions and Access Control Lists

Hey there! ๐
I'm Pratik R. Mandge, a DevOps Engineer passionate about all things AWS DevOps Technology. Currently on a learning adventure, I'm here to share my journey and Blog's in the world of cloud and DevOps.
๐ ๏ธ My focus? Making sense of AWS services, improving CI/CD, and diving into infrastructure as code. Whether you're fellow interns or curious enthusiasts, let's grow together in the vibrant DevOps space.
๐ Connect with me for friendly chats, shared experiences, and learning moments. Here's to embracing the learning curve and thriving in the exciting world of AWS DevOps Technology!
Follow me on LinkedIn: https://www.linkedin.com/in/pratik-mandge363
๐File Permissions with Examples
Linux file permissions are used to control who can read, write, and execute a file. This is important because Linux systems are multi-user, and file permissions are a security mechanism that protects system files from users and viruses.
Mainly Linux has three types of file permissions:

Read (r): Allows a user or group to view a file.
Write (w): Allows a user to write or modify a file or directory.
Execute (x): Allows a user or group to execute a file or view a directory.
โผ๏ธHow do you view Linux file permissions?
- ls -l: The
lscommand along with its-l(for long listing) option will show you metadata about your Linux files, including the permissions set on the file.
Here is Some examples:
โ๏ธCreate a simple file and do ls -ltr to see the details of the files:

โ๏ธowner โ The owner of the file or application and If you want to change the ownership of a file and directory use "chown".

โ๏ธgroup โ The group that owns the file or application and To change the group permission of file and directory use "chgrp".

โ๏ธTo change the other users permissions of a file or directory used "chmod"

๐Access Control List (ACL)
It is a mechanism for controlling access to file and directories on a Linux System. ACLs allows you to specify permissions for individual users and groups.
โ๏ธTo view the Access Control List for a file or directory, use getfacl command.
e.g. To view the ACLs for the file /etc/passwd

โ๏ธTo set or modify the Access Control List for a file or directory, use setfacl command.
e.g. To add the user newuser to the ACL for the file /etc/passwd with read and write permissions.

โป๏ธConclusion
Understanding file permissions and Access Control Lists (ACLs) is vital for securing computing environments. File permissions in Linux regulate access, while ACLs provide granular control.
I trust this blog will be a valuable resource, unlocking fresh insights and enriching your knowledge. ๐
๐ Happy Learning :)




