LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-01-2013, 08:47 AM   #1
hashbangbinbash
Member
 
Registered: Mar 2008
Posts: 106

Rep: Reputation: 16
ACL versus chmod


Prolly a silly question but I'd like to pin this down.... when would you use access control lists instead of or in congunction with the chmod command?

Also, umask and ACL masking... how would you say that fits into it all?

Question is whoolly for breadth. Thanks for your comments and insights.

Last edited by hashbangbinbash; 11-01-2013 at 08:49 AM.
 
Old 11-01-2013, 09:32 AM   #2
paladin.michael
Member
 
Registered: Jun 2011
Location: Danbury, CT, USA
Distribution: Kubuntu, Slackware, Debian, FreePBX
Posts: 72

Rep: Reputation: 22
As far as my knowledge goes ACL allows for more complex and granular file security. So beyond the user owner, group owner, others style which chmod generally controls and which is used by default.

I saw this on a quick google search which suggests that you may want to commit to using one or the other rather than both (should this problem be reproducible on your system)
http://www.linuxquestions.org/questi...ssions-909484/
 
Old 11-01-2013, 09:33 AM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Quote:
Originally Posted by hashbangbinbash View Post
Prolly a silly question but I'd like to pin this down.... when would you use access control lists instead of or in congunction with the chmod command?

Also, umask and ACL masking... how would you say that fits into it all?

Question is whoolly for breadth. Thanks for your comments and insights.
Files and directories have permission sets for the owner of the file, the group associated with the file, and all other users for the system. However, these permission sets have limitations. For example, different permissions cannot be configured for different users. This is where ACL's are used.

These links might help (these also address the umask issue):
- POSIX Access Control Lists on Linux
- Access Control Lists
 
1 members found this post helpful.
Old 11-01-2013, 10:17 AM   #4
hashbangbinbash
Member
 
Registered: Mar 2008
Posts: 106

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by paladin.michael View Post
As far as my knowledge goes ACL allows for more complex and granular file security. So beyond the user owner, group owner, others style which chmod generally controls and which is used by default.

I saw this on a quick google search which suggests that you may want to commit to using one or the other rather than both (should this problem be reproducible on your system)
http://www.linuxquestions.org/questi...ssions-909484/
Thanks for the response.
 
Old 11-01-2013, 10:18 AM   #5
hashbangbinbash
Member
 
Registered: Mar 2008
Posts: 106

Original Poster
Rep: Reputation: 16
Thumbs up

Quote:
Originally Posted by druuna View Post
Files and directories have permission sets for the owner of the file, the group associated with the file, and all other users for the system. However, these permission sets have limitations. For example, different permissions cannot be configured for different users. This is where ACL's are used.

These links might help (these also address the umask issue):
- POSIX Access Control Lists on Linux
- Access Control Lists
That makes sense, ACLs for specific user level type control, for instance where only one user should be updating a file that does not belong to her or her group. When this kind of situation is not the case, keep to chmod...

As a rule of thumb it works for me.
 
  


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
LXer: OpenOffice versus LibreOffice versus The World LXer Syndicated Linux News 0 03-06-2013 12:30 AM
Why does the ACL of a file created under a directory differ from the default ACL sctebnt Linux - Security 5 12-02-2011 09:13 AM
[SOLVED] bash - versus --perl - versus python ow1 Linux - Software 2 05-03-2010 08:57 PM
Apache: difference between chmod 644 and chmod 666 and chmod 600 for output/txt/dat? frenchn00b Programming 6 04-22-2009 02:10 PM
iptables acl versus cisco acl id_viorel Linux - Security 1 04-09-2008 06:00 AM


All times are GMT -5. The time now is 06:32 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