LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: Disabled
unix commands


could yo please explain me setfacl and getfacl
 
Old 04-20-2012, 02:12 AM   #2
xeleema
Member
 
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
Greetingz!

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

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

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
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, 08: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.
 
  


Reply


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 05:49 AM
Unix Commands runnerpaul Solaris / OpenSolaris 3 06-16-2008 09:34 AM
UNIX commands njanani Programming 1 07-15-2007 09:27 PM
unix commands help Tinku Linux - General 9 01-09-2006 03:25 AM
question about unix commands foxele Programming 4 01-24-2005 06:33 AM


All times are GMT -5. The time now is 03:11 AM.

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