0% found this document useful (0 votes)
48 views4 pages

Day 6 Task: File Permissions and Access Control Lists

This document discusses Linux file permissions and access control lists (ACL). It describes the read, write, and execute permissions that control how users can interact with files. These permissions can be viewed and modified using the ls -la, chmod, chown, and chgrp commands. The document also explains that ACLs provide additional flexible permissions and the setfacl and getfacl commands can be used to set and view ACL permissions on files.

Uploaded by

sheak Imran
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views4 pages

Day 6 Task: File Permissions and Access Control Lists

This document discusses Linux file permissions and access control lists (ACL). It describes the read, write, and execute permissions that control how users can interact with files. These permissions can be viewed and modified using the ls -la, chmod, chown, and chgrp commands. The document also explains that ACLs provide additional flexible permissions and the setfacl and getfacl commands can be used to set and view ACL permissions on files.

Uploaded by

sheak Imran
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Day 6 Task: File Permissions and Access Control Lists

Linux Permissions:
This Linux permissions give you the authority to open and perform some
operations on a file. In Linux There are 3 types of Permissions:
1. Read :- This Permission allows you to open and read the
content of a file
2. Write :- This Write permission allows you to
wdit,rename,remove of a file
3. Execute :- Using this permission, you can execute a file.

To Check the permission of file,use below command,


ls –la

` In Permissions ,there are 3 typs of classes:


1. User : Permission used for owner of the file
2. Group : Permissions used by members of the group
3. Other : Permissions used by all other uers.
Set Permission with Numeric value:
r( read ) :- 4
w( Write ) :-2
X( Execute ) :- 1

For change permission:


chmod 700 Sample.txt

For change Ownership


chown rushi Sample.txt

For change the Group Ownership of a file or directory


chgrp New_Group_Name File_Name

➢ Read about ACL and try out the commands getfacl and setfacl
Access Control list(ACL) provides an additional, more flexible permssion for file
systems.
Access Control list is a service which is use for providing special permission to
specific user and group to particular directories and file

setfacl and getfacl are used for setting up ACL and showing ACL respectively

To Get the Permissions of ACL


getfacl ubuntu/Rushi/Sample.txt

To Set the Permission of ACL


setfacl –m u:ubuntu:rwx ubuntu/Rushi/Sample.txt

Remove ACL Permission


setfacl –b ubuntu/Rushi/Sample.txt

You might also like