LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General
User Name
Password
Linux - General This forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Thread Tools
Old 11-03-2009, 06:26 PM   #1
prakashkumar84
LQ Newbie
 
Registered: Nov 2009
Location: chennai
Posts: 14
Thanked: 0
what is the difference between chmod and setfacl


[Log in to get rid of this advertisement]
Hi All,

could any one tell me the exact difference between chmod and setfacl commands?.

Thanks,
Prakashkumar.M
windows_xp_2003 prakashkumar84 is offline     Reply With Quote
Old 11-03-2009, 08:23 PM   #2
knudfl
Senior Member
 
Registered: Jan 2008
Location: Copenhagen, Denmark
Distribution: pclos2009.2, slack13, Debian Lenny (+30 others, for test only)
Posts: 2,935
Thanked: 277
Welcome to LQ.

Homework ? ?

man chmod

man setfacl
linuxpclinuxos knudfl is offline     Reply With Quote
Old 11-04-2009, 02:49 AM   #3
prakashkumar84
LQ Newbie
 
Registered: Nov 2009
Location: chennai
Posts: 14
Thanked: 0

Original Poster
Hi,

Thanks for your quick reply.

I know the 'man' command very well, but i need to know the exact difference, something with explanation.

Thanks.
windows_xp_2003 prakashkumar84 is offline     Reply With Quote
Old 11-04-2009, 02:57 AM   #4
Disillusionist
Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 826
Thanked: 48
Read the man page for setfacl

Pay attention to the Examples

It should become apparent what the difference is.
windows_vista Disillusionist is online now     Reply With Quote
Old 11-04-2009, 12:00 PM   #5
prakashkumar84
LQ Newbie
 
Registered: Nov 2009
Location: chennai
Posts: 14
Thanked: 0

Original Poster
Thanks.
windows_xp_2003 prakashkumar84 is offline     Reply With Quote
Old 11-09-2009, 02:06 AM   #6
prakashkumar84
LQ Newbie
 
Registered: Nov 2009
Location: chennai
Posts: 14
Thanked: 0

Original Poster
sorry, I couldn't find the exact diff thr man pages. Can somebody give me an exact diff?.
windows_xp_2003 prakashkumar84 is offline     Reply With Quote
Old 11-09-2009, 04:12 AM   #7
Disillusionist
Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 826
Thanked: 48
chmod only caters for permissions based on owner group all:

-rwx------ = read,write, and execute for owner only:
Code:
chmod 700 file
-rwxrwx--- = read,write, and execute for owner and 1 specific group:
Code:
chmod 770 file

setfacl allows for much greater control over who has access to a specific file or folder.

You can grant an additional user read access to a file:
Code:
setfacl -m u:lisa:r file
windows_vista Disillusionist is online now     Reply With Quote
Thanked by:
Old 11-10-2009, 05:41 PM   #8
prakashkumar84
LQ Newbie
 
Registered: Nov 2009
Location: chennai
Posts: 14
Thanked: 0

Original Poster
Great.

Thanks.
windows_xp_2003 prakashkumar84 is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
Apache: difference between chmod 644 and chmod 666 and chmod 600 for output/txt/dat? frenchn00b Programming 6 04-22-2009 02:10 PM
setfacl erat123 Linux - Security 2 05-31-2007 12:16 AM
setfacl linuxjamil Linux - Security 1 04-05-2007 03:00 PM
chmod, external usb, vfat - can't chmod a directory itsjustme Slackware 2 04-02-2006 05:23 PM
Setfacl subaruwrx Fedora 3 09-07-2004 10:18 AM


All times are GMT -5. The time now is 02:44 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration