How to set a ACL for the user or a file?

Answers were Sorted based on User's Feedback



How to set a ACL for the user or a file?..

Answer / mahesh savalia

To set ACL for user
# setfacl -m user:<username>:rwx <filename>

To set ACL for group
# setfacl -m group:<groupname>:rwx <filename>


to check the same

# getfacl <filename>

Is This Answer Correct ?    1 Yes 0 No

How to set a ACL for the user or a file?..

Answer / srinivas

setfacl -M u:permisons m:mask value of the permisons(rwx)

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More Solaris AllOther Interview Questions

what r the packages for intel machine when u install

1 Answers   IBM,


what are the questions that will be asked for a 3yrs experienced candidate in solaris system admin. how to face first hr round if one puts fake experience of 2or 3 yrs in solaris system admin. please respond with an opt answer. thank you in advance...

2 Answers   HCL, Wipro,


what is split brain? if it happens, what are the solutions need to be applicable?

2 Answers  


How to configure llt and gab in VCS tell me step by step?

1 Answers   Mphasis,


Whats the boot process of VxVM?

1 Answers   Wipro,






In remote support environment not able to ping one solaris server .What are the necessary steps you will do ?

2 Answers   Siemens,


what r the configuration files for rlogin and ssh

2 Answers   IBM,


What is cachefs?

0 Answers  


why u can't go for windows& why u chosen UNIX

3 Answers   IBM,


If you mistype a password, how do you clear it out to retype the password again?

11 Answers   Genpact, WNS,


What is the profile file for ordinary user, when those will execute..?

2 Answers  


how to u see when the surver was rebooted

9 Answers   Lehman Brothers,


Categories
  • Solaris Commands Interview Questions Solaris Commands (360)
  • Solaris Threads Interview Questions Solaris Threads (9)
  • Solaris IPC Interview Questions Solaris IPC (30)
  • Solaris Socket Programming Interview Questions Solaris Socket Programming (3)
  • Solaris System Calls Interview Questions Solaris System Calls (25)
  • Solaris General Interview Questions Solaris General (170)
  • Solaris AllOther Interview Questions Solaris AllOther (297)