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

Compare and contrast VCS and Sun Cluster.

1 Answers  


How many default no of users r there?

1 Answers  


how to share a directory with nfs server and how client mount the nfs share

3 Answers   IBM, Wipro,


how can u crete snapshot

1 Answers   HCL,


Whats the difference between SVM and VxVM? What would you recommend to your clients? why?

2 Answers  






If My Server is Suddenly Down what are the reasons? Tell me Exact time of Ping?

1 Answers  


explain Jumpstat configuration..?

2 Answers   Accenture,


what r the port numbers for HTTP and DNS

1 Answers   IBM,


How do you create a solaris package?

2 Answers  


What does fmthard do?

9 Answers   Accel,


how u will recover the disk group

2 Answers   IBM,


u have 10 solaris boxes and u have given to add 200 users? At fast how can u add the 200 users?

3 Answers   IBM,


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)