LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux 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
 
LinkBack Search this Thread
Old 11-03-2009, 06:26 PM   #1
prakashkumar84
LQ Newbie
 
Registered: Nov 2009
Location: chennai
Posts: 16

Rep: Reputation: 0
what is the difference between chmod and setfacl


Hi All,

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

Thanks,
Prakashkumar.M
 
Old 11-03-2009, 08:23 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2010.12, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 8,578

Rep: Reputation: 1207Reputation: 1207Reputation: 1207Reputation: 1207Reputation: 1207Reputation: 1207Reputation: 1207Reputation: 1207Reputation: 1207
Welcome to LQ.

Homework ? ?

man chmod

man setfacl
 
Old 11-04-2009, 02:49 AM   #3
prakashkumar84
LQ Newbie
 
Registered: Nov 2009
Location: chennai
Posts: 16

Original Poster
Rep: Reputation: 0
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.
 
Old 11-04-2009, 02:57 AM   #4
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,007

Rep: Reputation: 81
Read the man page for setfacl

Pay attention to the Examples

It should become apparent what the difference is.
 
Old 11-04-2009, 12:00 PM   #5
prakashkumar84
LQ Newbie
 
Registered: Nov 2009
Location: chennai
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks.
 
Old 11-09-2009, 02:06 AM   #6
prakashkumar84
LQ Newbie
 
Registered: Nov 2009
Location: chennai
Posts: 16

Original Poster
Rep: Reputation: 0
sorry, I couldn't find the exact diff thr man pages. Can somebody give me an exact diff?.
 
Old 11-09-2009, 04:12 AM   #7
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,007

Rep: Reputation: 81
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
 
Old 11-10-2009, 05:41 PM   #8
prakashkumar84
LQ Newbie
 
Registered: Nov 2009
Location: chennai
Posts: 16

Original Poster
Rep: Reputation: 0
Great.

Thanks.
 
Old 12-10-2009, 07:55 PM   #9
MauMau
LQ Newbie
 
Registered: Dec 2009
Posts: 2

Rep: Reputation: 0
I think a complete explanation of this can be found at http://www.suse.de/~agruen/acl/linux-acls/online/ where the author Andreas Grünbacher explain in details the differences of the two. The author was involved in the design and implementation of extended attributes and ACLs on Linux and he goes in details that makes this issue clear for the reader. Hope this can helps.

Enjoy,

MauMau
 
Old 12-11-2009, 01:15 AM   #10
prakashkumar84
LQ Newbie
 
Registered: Nov 2009
Location: chennai
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 08:08 PM.

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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration