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

i have sun ultra10 machine,OS is solaris 9 and i have single harddisk, now i want same ,exact copy of data in anoher harddisk so that i should be able boot from new harddisk, how do yo do this? is it called as cloning?

4 Answers   Symphony,


how to create nis master,slave,client

2 Answers   IBM,


What is JASS?

1 Answers  


wat is router? How do u find a default router?

1 Answers  


how to make processor online and offline

6 Answers   IBM,






How to quickly mirror a volume, if the volume is empty?

4 Answers  


what is df -kh i/o error ?How to Troubleshoot ?

2 Answers   Siemens,


What is the difference between failing and failed disks?

3 Answers   IBM, Sascon, Sun Microsystems,


what r the configuration files for rlogin and ssh

2 Answers   IBM,


If fsck is running, one thind u should not do.. what's that?

3 Answers  


How do you give a user access to an application or program that needs to run as root without giving them the root password?

2 Answers   Infosys,


how to change nic card from half duplex to full duplex?

1 Answers   Wipro,


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)