LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 03-17-2014, 03:32 PM   #1
brownwrap
Member
 
Registered: Jan 2010
Posts: 121

Rep: Reputation: 16
I Don't understan ACLs


I have a filesystem that is XFS. I understand XFS has ACLs built in. I remotely mounted that same filesystem through NFS and enabled acl in fstab. Everything was going along fine, until the user 'uliana' could not access files that they owned:

Code:
getfacl scans-bad/
# file: scans-bad
# owner: uliana
# group: uliana
# flags: -s-
user::rw-
user:uliana:rw-
group::rw-
group:uliana:rw-
mask::rw-
other::r--
default:user::rw-
default:group::rw-
default:other::rw-
I used:
Code:
setfacl -m user:uliana:6 scans
setfacl -m group:uliana:6 scans
Yet the user still can't access the directory or the files in it. I can as root.
 
Old 03-17-2014, 04:01 PM   #2
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
To enter the directory you need to add execute permissions on the directory.

http://www.thegeekstuff.com/2010/04/...y-permissions/
 
Old 03-17-2014, 04:24 PM   #3
brownwrap
Member
 
Registered: Jan 2010
Posts: 121

Original Poster
Rep: Reputation: 16
That worked, but I don't understand why.

In this directory is a bunch of Postscript files. There isn't and executable in the directory, Why did execute work?
 
Old 03-18-2014, 09:19 AM   #4
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
For a directory the execute bit isn't about being able to run something, it's about being able to do stuff in that directory.
So if you wanted to access a file's content in a directory all you'd need is execute permission and of course proper permissions on the file itself (and the knowledge that the file existed since without read you wouldn't be able to check).
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
squid acls ikinnu Linux - Networking 2 08-25-2007 04:24 PM
LDAP ACLs ziox Linux - Server 0 04-20-2007 11:07 PM
SambaPDC and ACLs ziggy1621 Linux - Networking 4 12-21-2005 07:10 AM
Linux ACLs kcv Linux - Security 6 09-14-2005 03:50 PM
How can I understan Slackware better monkeymartin Slackware 4 03-30-2003 11:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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