LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 09-29-2017, 11:47 AM   #1
vande012
Member
 
Registered: Jul 2007
Location: Carrollton, Texas
Distribution: cent os 7 , windows 7
Posts: 83

Rep: Reputation: 15
setfacl


can setfacl be accomplished by using chown and chomod?

I ask because I am using puppet to set file permissions and setfacl is not a native puppet command
 
Old 09-29-2017, 12:35 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by vande012 View Post
can setfacl be accomplished by using chown and chomod?

I ask because I am using puppet to set file permissions and setfacl is not a native puppet command
No. While you can control *SOME* aspects of file permissions with chown/chmod that do some of the same things as acl's do, acl's give you much finer control over things.

The "But.." here, is how you're using it. In conjunction with Samba/NFS where ACL's have different meanings, no. For 'generic' permissions, it will depend on what your goals are. What are you trying to accomplish?
 
1 members found this post helpful.
Old 09-29-2017, 12:44 PM   #3
vande012
Member
 
Registered: Jul 2007
Location: Carrollton, Texas
Distribution: cent os 7 , windows 7
Posts: 83

Original Poster
Rep: Reputation: 15
I'm setting splunk log directory permissions

I can set their chmod 755 and chown splunk for one level in their splunk log directories but they do a setfacl

E.G.
setfacl -R -d -m g:splunk:rx /var/log/

There is no puppet module to accomplish their setfacl , the only way to accomplish this is with a puppet exec resource, i believe
 
Old 09-29-2017, 03:24 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,984

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
To be exact, no you can't use ch* to perform setacl as the commands are too old to perform all the newer features.

chmod - change file mode bits

chown - change file owner and group

setfacl - set file access control lists

Some help here. https://unix.stackexchange.com/quest...se/92414#92414
__________________
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
setfacl help avramovic Linux - Newbie 1 01-14-2015 09:43 AM
setfacl erat123 Linux - Security 2 05-30-2007 11:16 PM
setfacl linuxjamil Linux - Security 1 04-05-2007 02:00 PM
Setfacl subaruwrx Fedora 3 09-07-2004 09:18 AM
acl/setfacl help ebs Linux - General 1 06-20-2003 11:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:51 PM.

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
Open Source Consulting | Domain Registration