What is mask and effective right mask in setfacl?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers What is mask and effective right mask in setfacl?
# 1  
Old 01-31-2013
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.
# 2  
Old 01-31-2013
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
# 3  
Old 02-01-2013
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
The mask is the rwx- string for the 9 bits, e.g., rwxrwxrwx or rw-r-----.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Samba create mask and dir mask on RHEL 4.8

Hi Experts, I'm using samba -3.6.1 on Red Hat Enterprise Linux ES release 4 (Nahant Update 8) ,all seems ok. The issue im facing is as follows. When ever a user creates a file via windows explorer the permissions assgined to the file are as follows -rw-rwxr--+ 1 tom group2 0 Mar 9... (1 Reply)
Discussion started by: maverick_here
1 Replies

2. UNIX for Dummies Questions & Answers

How do mask off the string that match my value?

Hi, I have a file like following, aaabb aaavv bbdddaaab fgdgjhaa bfd 12352aa dgs1xaf sdgsdyg4 How can i get the output below(mask off all the line that have "a") by using vim #aaabb #aaavv #bbdddaaab #fgdgjhaa bfd #12352aa (4 Replies)
Discussion started by: 793589
4 Replies

3. UNIX for Dummies Questions & Answers

how to mask the password ?

Hi All, i am executing peoplesoft sqr command from unix prompt which has the unix id/password as parameter along with other parameters. i want to show whole command in log file but want to mask the id/password field. this command i am executing in shell script. Please suggest.. >sqr sqrname... (2 Replies)
Discussion started by: avi.coep
2 Replies

4. Shell Programming and Scripting

Need to Mask Data

I have an requirement. There is a file which has the below contents Unix|123|17-01-2010 .... .... .... .... and so an now each letter has a corresponding predefined mapping letter in order to mask the original data.(for example U = A, n=b, i=c, x=d, same like number 1=9,2=8,3=7. Also... (8 Replies)
Discussion started by: ksmbabu
8 Replies

5. Shell Programming and Scripting

shell script to mask

I have a file which has huge number of rows. I have to mask only few rows at a particular position lets say 12th to 19th i have to replace with X's (XXXXXXX) I am reading the file and even checking the conditions, but I am not sure how I can replace the text my program while read... (7 Replies)
Discussion started by: prassu
7 Replies

6. Shell Programming and Scripting

mask ID number

HP-UX 11i v2. #!/bin/sh Hi all. I have a flat file like this with lines like this: |07/19/07|08:26AM|1|CupsCoffee|CupsCo|989898989 |Doe, John Y |THE PLUS CARD - Price| | |Y| | 2.00| I would like to replace the id number (field 6) with a masked... (3 Replies)
Discussion started by: lyoncc
3 Replies

7. UNIX for Dummies Questions & Answers

overriding the mask in setfacl

hello everbody: Im trying to give the user "ydarwish" a full access over some directory on my sol9 machine. however the setfacl is recalculating the mask parameter keeping me from keeping him effective write and read access: root@Obi-Wan> setfacl -m u:ydarwish:rwx /IN_ARCHIVE6 root@Obi-Wan>... (4 Replies)
Discussion started by: aladdin
4 Replies

8. IP Networking

Changing the mask

What is the command to change the mask to 255.255.255.0 The system was set up incorectly and the mask needs to be corrected (1 Reply)
Discussion started by: kkinnon
1 Replies

9. Programming

password mask in C

Hi, Could any one help me to write a C program for password mask with ******. I mean whatever word i will type that will show on the screen as ***** and should store the correct value in a variable. Thanks in advance Krishna (5 Replies)
Discussion started by: krishna
5 Replies

10. IP Networking

Subnet mask

Hi, I have about 30 computers for users with subnet mask x.x.x.0, and 25 computers for workers with s.m. x.x.x.128. My server has a s.m. x.x.x.128 so with workers computers I can see my server and all the computers in that s.m., but I can't see the server from the users computers and I need to see... (7 Replies)
Discussion started by: Z0DiaC
7 Replies
Login or Register to Ask a Question