Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-20-2012, 01:09 AM   #1
LQ Newbie
Registered: Apr 2012
Posts: 1

Rep: Reputation: Disabled
unix commands

could yo please explain me setfacl and getfacl
Old 04-20-2012, 01:12 AM   #2
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 987
Blog Entries: 4

Rep: Reputation: 252Reputation: 252Reputation: 252

First I would suggest you read the documentation for your distribution;

setfacl - set file access control lists (online man page)
man setfacl
man getfacl
Old 04-20-2012, 01:48 AM   #3
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
The manpages for these commands are a bit cryptic, but the setfacl man page has examples on the bottom. Try these commands out yourself. You may need to add "acl" to the mount options in /etc/facl if it isn't already used. You can mount it with the "acl,remount" options to add the acl options to an already mounted partition. You don't need all the options when remounting. E.G. "sudo mount /home -o acl,remount"

One thing that I didn't realize at first is with using default acls:

Suppose you want the group ftpusers to have rwx access on a directory and inherited on new directories inside:
sudo setfacl -m g:ftpusers:directory
sudo setfacl -m d:g:ftpusers:directory

You need to set the acl for the group, as well as the default acl. The directory itself won't be changed otherwise.
Old 04-20-2012, 07:32 AM   #4
Satyaveer Arya
Senior Member
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
A small acl guide you can get it from here.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
calling UNIX commands C/C++ Asteroid Programming 1 03-11-2009 04:49 AM
Unix Commands runnerpaul Solaris / OpenSolaris 3 06-16-2008 08:34 AM
UNIX commands njanani Programming 1 07-15-2007 08:27 PM
unix commands help Tinku Linux - General 9 01-09-2006 02:25 AM
question about unix commands foxele Programming 4 01-24-2005 05:33 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:27 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration