Loading...
Basic Linux

Folder Permissions(ACL)

 TO APPLY THE ACL PERMISSION
cat > solaris
ls  ( to check the file )
setfacl  -m u:a1:rw  solaris
TO CHECK THE ACL PERMISSION FOR FILE
ll solaris

TO CHECK ACL USERS WITH PERMISSION
getfacl solaris

Then login as Users and check

su – a1  ( to login )
cd /root  ( to enter the dir )
ls  ( to check  )
cat  >>  solaris ( to write in file )
cat solaris  ( to read the file )
exit  ( to logoff )
su – a2  ( to login as user )
cd /root  ( to enter the dir )
ls  ( to check the file )
cat solaris ( to read the file )
exit ( to logoff )

TO  REMOVE ACL PERMISSION FOR A USER

setfacl -x  a2  solaris
getfacl solaris  ( to check )

TO REMOVE ACL PERMISSION FOR A FILE

setfacl –remove-all solaris
getfacl solaris ( to check the acl user )
ll solaris   ( to check the file )

Leave a Reply

Your email address will not be published. Required fields are marked *