LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-02-2015, 04:43 AM   #1
byran cheung
Member
 
Registered: Sep 2013
Posts: 321

Rep: Reputation: Disabled
change ACL


I have a directory , it acl setting is as below .

#getfacl my_path

group:root:r-x
group:acc_staff:rwx
group:itaudit:r-x

If I want to change the acl setting to as below ( the group name from acc_staff to edp_staff ) , can advise how to do it ? thanks

group:root:r-x
group:edp_staff:rwx
group:itaudit:r-x
 
Old 06-02-2015, 08:00 AM   #2
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Look here
 
Old 06-02-2015, 09:04 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,727

Rep: Reputation: 8170Reputation: 8170Reputation: 8170Reputation: 8170Reputation: 8170Reputation: 8170Reputation: 8170Reputation: 8170Reputation: 8170Reputation: 8170Reputation: 8170
Quote:
Originally Posted by byran cheung View Post
I have a directory , it acl setting is as below .

#getfacl my_path

group:root:r-x
group:acc_staff:rwx
group:itaudit:r-x

If I want to change the acl setting to as below ( the group name from acc_staff to edp_staff ) , can advise how to do it ? thanks

group:root:r-x
group:edp_staff:rwx
group:itaudit:r-x
You can start by checking the THREE OTHER THREADS you have about ACL's:
http://www.linuxquestions.org/questi...cl-4175541082/
http://www.linuxquestions.org/questi...ux-4175524919/
http://www.linuxquestions.org/questi...on-4175524369/

At some point, you are going to have to start to APPLY what you're told, rather than asking to be spoon-fed everything. You have been given information about ACL's and how to set them. Why can't you think about what you want to do, and apply that knowledge?
 
Old 06-02-2015, 12:09 PM   #4
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Quote:
Originally Posted by TB0ne View Post
Why can't you think about what you want to do, and apply that knowledge?
Because that would require some thought?
 
1 members found this post helpful.
Old 06-11-2015, 11:55 AM   #5
vwtech
Member
 
Registered: Dec 2007
Distribution: Fedora, Oracle Linux & Centos
Posts: 197

Rep: Reputation: 26
Quote:
Originally Posted by byran cheung View Post
I have a directory , it acl setting is as below .

#getfacl my_path

group:root:r-x
group:acc_staff:rwx
group:itaudit:r-x

If I want to change the acl setting to as below ( the group name from acc_staff to edp_staff ) , can advise how to do it ? thanks

group:root:r-x
group:edp_staff:rwx
group:itaudit:r-x

This will get you going but need to run (then read):
#man setfacl

Remove the rule for group acc_staff:
#setfacl -x g:acc_staff yourfile/directory
Add rule for group edp_staff:
#setfacl -m g:edp_staff:rwx yourfile/directory
 
  


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
change ACL byran cheung Linux - Newbie 6 04-30-2015 01:40 AM
need to change ACL mask to r-x for files to be created in directory faitrien Linux - Security 4 02-26-2014 06:08 AM
problem with samba and ACL ,ACL does not work as I want golden_boy615 Linux - Server 1 12-18-2011 09:18 AM
Why does the ACL of a file created under a directory differ from the default ACL sctebnt Linux - Security 5 12-02-2011 08:13 AM
iptables acl versus cisco acl id_viorel Linux - Security 1 04-09-2008 05:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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