LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-27-2016, 03:25 AM   #1
sub320
Member
 
Registered: Jan 2016
Posts: 116

Rep: Reputation: 3
Linux ACL


In my linux server , we use acl to control the access right of /tmp , only those have the acl group ( acl_user_group ) could access /tmp , I have just created 4 folders as below

/tmp/folder1
/tmp/folder2
/tmp/folder3
/tmp/folder4

Now , I would like one specific user which are acl group ( acl_user_group ) but deny to access to the directory /tmp/follder2 , would would how to do it ?

thanks
 
Old 01-27-2016, 04:27 AM   #2
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 1,847

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
try this:

to remove permissions, I didn't test.

setfacl -x g:acl_user_group /tmp/follder2

Last edited by JJJCR; 01-27-2016 at 04:28 AM. Reason: edit
 
Old 01-27-2016, 01:00 PM   #3
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,870

Rep: Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487
Depending on your distribution, /tmp is frequently a tmpfs mount - which means it isn't on disk... and gets recreated on every boot, and that means no files (or ACLs) will remain.

/tmp is not intended to be used for permanent files, just scratch that may be disposed of at any time.
 
Old 01-27-2016, 11:34 PM   #4
sub320
Member
 
Registered: Jan 2016
Posts: 116

Original Poster
Rep: Reputation: 3
thanks reply ,

or may be I have another question ,

if I want to release a specific user ( not group ) to access a folder , what is the command to do that ?

Thanks
 
Old 01-27-2016, 11:38 PM   #5
MrTux
Member
 
Registered: Dec 2015
Posts: 131

Rep: Reputation: Disabled
setfacl -m u:dtrump:rwx myfolder


See what I did there? :O

Last edited by MrTux; 01-27-2016 at 11:40 PM.
 
Old 01-28-2016, 09:21 PM   #6
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 1,847

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
Talking

Quote:
Originally Posted by MrTux View Post
setfacl -m u:dtrump:rwx myfolder


See what I did there? :O
-m is modify

-x is remove

more from here: http://linuxcommand.org/man_pages/setfacl1.html

setfacl -x u:dtrump nice_hair_cut_idol

Last edited by JJJCR; 01-28-2016 at 11:04 PM. Reason: edit
 
Old 01-28-2016, 09:24 PM   #7
MrTux
Member
 
Registered: Dec 2015
Posts: 131

Rep: Reputation: Disabled
Quote:
Originally Posted by JJJCR View Post
-m is modify

-x is remove

more from here: http://linuxcommand.org/man_pages/setfacl1.html

setfacl -x u:dtrump:rwx nice_hair_cut_idol
Release meaning giving access to.
 
  


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
ACL vs default ACL makupl Linux - Newbie 1 09-26-2013 02:11 AM
problem with samba and ACL ,ACL does not work as I want golden_boy615 Linux - Server 1 12-18-2011 10: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 09:13 AM
iptables acl versus cisco acl id_viorel Linux - Security 1 04-09-2008 06:00 AM
Linux ACL's? gsmonk Linux - General 4 09-06-2003 03:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:59 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
Open Source Consulting | Domain Registration