LinuxQuestions.org
Help answer threads with 0 replies.
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-23-2010, 03:31 PM   #1
StupidNewbie
Member
 
Registered: Dec 2007
Posts: 71

Rep: Reputation: 16
Can someone explain this getfacl output?


Hey everyone. I'm looking for someone who can explain this output for me. I am trying to set up an ACL via Windows on a Samba share and it worked like I planned, but I think there might be ways I can fine tune it if I understand this better.

Code:
myServer:/myShare # getfacl myFolder
# file: myFolder
# owner: xxxxxxxxx
# group: xxxxxxxxx
user::rwx
user:someUser:rwx
group::---
mask::rwx
other::---
default:user::rwx
default:user:someUser:rwx
default:group::---
default:mask::rwx
default:other::---
The names/etc have been changed here obviously, but this is what is put in when I added someUser from Active Directory via the Windows security dialogs.

I don't quite understand what the "mask" does or what all the "default" things are. Can someone who understands this output better than me give me some insight?

Thanks!
 
Old 03-23-2010, 04:50 PM   #2
deadeyes
Member
 
Registered: Aug 2006
Posts: 609

Rep: Reputation: 79
Quote:
Originally Posted by StupidNewbie View Post
Hey everyone. I'm looking for someone who can explain this output for me. I am trying to set up an ACL via Windows on a Samba share and it worked like I planned, but I think there might be ways I can fine tune it if I understand this better.

Code:
myServer:/myShare # getfacl myFolder
# file: myFolder
# owner: xxxxxxxxx
# group: xxxxxxxxx
user::rwx
user:someUser:rwx
group::---
mask::rwx
other::---
default:user::rwx
default:user:someUser:rwx
default:group::---
default:mask::rwx
default:other::---
The names/etc have been changed here obviously, but this is what is put in when I added someUser from Active Directory via the Windows security dialogs.

I don't quite understand what the "mask" does or what all the "default" things are. Can someone who understands this output better than me give me some insight?

Thanks!
default:user::rwx
default:user:someUser:rwx
default:group::---
default:mask::rwx
defaultther::---
These lines are used when you create a new directory in this directory or a new file in this directory.

The mask thing:
Quote:
This is the effective rights mask. This entry limits the effective rights granted to all ACL groups and ACL users. The traditional Unix User, Group, and Other entries are not affected. If the mask is more restrictive than the ACL permissions that you grant, then the mask takes precedence.
So if you have mask r--, then even if you give rwx to "tippy" this user would still get only r-- permissions:
user::rw-
user:axel:rw- #effective:r--
user:tippy:rwx #effective:r--
group::r--
group:lensmen:rwx #effective:r--
mask::r--
other::r--

Reference: http://www.vanemery.com/Linux/ACL/linux-acl.html
 
Old 03-23-2010, 05:01 PM   #3
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018
google is your friend:

http://www.informit.com/articles/art...seqNum=5&rll=1
 
Old 03-24-2010, 12:44 AM   #4
StupidNewbie
Member
 
Registered: Dec 2007
Posts: 71

Original Poster
Rep: Reputation: 16
Thanks guys, this is exactly what I needed. And FYI GazL I know how to use Google, I asked here because I wanted a better explanation than the ones I found there.

I had to ask the question in my own way to understand it.

DeadEyes, thanks, you explained it perfectly! I will be throwing up a write up here soon on the project I just finished since it took me almost 2 months to complete it due to lack of information. Hopefully it will help someone!
 
Old 03-24-2010, 12:56 PM   #5
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018
Quote:
Originally Posted by StupidNewbie View Post
And FYI GazL I know how to use Google, I asked here because I wanted a better explanation than the ones I found there.
I simply provided you with a link to an article that answered both of your questions and pointed out that it was found by doing a google search. Why you chose to ask your question on this forum is entirely your concern.

Though my intent may have been to encourage a bit of self-reliance, there was certainly no sarcasm or insult intended, so please don't take the hump.
 
Old 03-24-2010, 01:01 PM   #6
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Quote:
Originally Posted by GazL View Post
Though my intent may have been to encourage a bit of self-reliance, there was certainly no sarcasm or insult intended, so please don't take the hump.
I agree

-C
 
  


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
Explain the output(pointers) ishandutta2007 Programming 2 01-28-2010 08:25 AM
please explain the output of the printf dina3e Linux - Newbie 14 10-15-2008 11:03 AM
Could someone please explain this nmap output? stardotstar Linux - Networking 0 02-07-2005 10:02 PM
explain the output suchi_s Programming 9 11-08-2004 09:07 AM
explain the output c pragti Programming 10 05-28-2004 12:17 AM

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

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