What is mask and effective right mask in setfacl? | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

What is mask and effective right mask in setfacl?

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 01-31-2013
Jcpratap Jcpratap is offline
Registered User
 
Join Date: Feb 2012
Last Activity: 17 October 2014, 1:44 AM EDT
Posts: 56
Thanks: 2
Thanked 3 Times in 3 Posts
What is mask and effective right mask in setfacl?

Hi Guys,

can someone explain what is mask and effective right mask in setfacl and
getfacl command with example, unable to get it.
Sponsored Links
    #2  
Old 01-31-2013
DGPickett DGPickett is offline Forum Advisor  
Registered User
 
Join Date: Oct 2010
Last Activity: 15 October 2014, 5:08 PM EDT
Location: Southern NJ, USA (Nord)
Posts: 4,455
Thanks: 8
Thanked 546 Times in 524 Posts
Just like 'chmod' or 'ls -l', octal bits or letters: Man Page for setfacl (all Section 1) - The UNIX and Linux Forums

EXAMPLES
Example 1 Adding read permission only

The following example adds one ACL entry to file abc, which gives user
shea read permission only.

setfacl -m user:shea:r-- abc
Sponsored Links
    #3  
Old 02-01-2013
Jcpratap Jcpratap is offline
Registered User
 
Join Date: Feb 2012
Last Activity: 17 October 2014, 1:44 AM EDT
Posts: 56
Thanks: 2
Thanked 3 Times in 3 Posts
i know setfacl -m option to grant permissions to a user , but i want to know what is the mask in this case and how it effects the other permission and also what is effective rights mask

---------- Post updated at 08:22 AM ---------- Previous update was at 08:15 AM ----------

also i have found this line in many online articles can someone elaborate
this


Code:
 
Sets the effective rights mask. The mask is the union of all permissions of the owning group and all of the user and group entries.

    #4  
Old 02-01-2013
DGPickett DGPickett is offline Forum Advisor  
Registered User
 
Join Date: Oct 2010
Last Activity: 15 October 2014, 5:08 PM EDT
Location: Southern NJ, USA (Nord)
Posts: 4,455
Thanks: 8
Thanked 546 Times in 524 Posts
The mask is the rwx- string for the 9 bits, e.g., rwxrwxrwx or rw-r-----.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Samba create mask and dir mask on RHEL 4.8 maverick_here Red Hat 1 03-09-2012 10:24 AM
how to mask the password ? avi.coep UNIX for Dummies Questions & Answers 2 03-07-2011 10:22 PM
Need to Mask Data ksmbabu Shell Programming and Scripting 8 08-16-2010 01:18 PM
overriding the mask in setfacl aladdin UNIX for Dummies Questions & Answers 4 05-30-2007 03:11 AM
Subnet mask Z0DiaC IP Networking 7 09-15-2001 07:09 AM



All times are GMT -4. The time now is 05:46 AM.