LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-11-2011, 04:45 PM   #1
shadowers
Member
 
Registered: Oct 2008
Posts: 52

Rep: Reputation: 15
Issue with ACLs


I have several areas on my server where the default Linux/Unix permission will simply not do the job. I am not implementing ACLs on my server and I am having a few issues.

Here is an issue I am having. On the root of the filesystem I have a folder called "git" and within git is "repos." The owner of these folders is root and the group is root. The permissions are 0770. I then implemented an ACL with following command "setfacl -dR -m g:sambausers:rw git/." When I use getfacl on the folders this is the output:

Code:
larry@Jaguar:/$ getfacl git
# file: git
# owner: root
# group: sambausers
user::rwx
group::rwx
other::---
default:user::rwx
default:group::rwx
default:group:sambausers:rwx
default:mask::rwx
default:other::---
Now I use su and go into the account "larry" from root.

Within the git folder I have permissions on the account larry as I should(larry is apart of the sambausers group), but when I try to cd into repos, it says permission is denied.

What am I doing incorrectly?
 
Old 05-11-2011, 04:51 PM   #2
SL00b
Member
 
Registered: Feb 2011
Location: LA, US
Distribution: SLES
Posts: 375

Rep: Reputation: 112Reputation: 112
You need execute permission on directories in order to cd to them. According to your setfacl command, you only gave sambausers read and write.

Last edited by SL00b; 05-11-2011 at 04:52 PM.
 
Old 05-11-2011, 09:02 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,358

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Quote:
default:group:sambausers:rwx
x perm is there ... I guess repos is another dir; check the perms/acl?
 
Old 05-11-2011, 11:08 PM   #4
shadowers
Member
 
Registered: Oct 2008
Posts: 52

Original Poster
Rep: Reputation: 15
I ran getfacl on the repos dir. here is the output.

Code:
larry@Jaguar:/git$ getfacl repos/
# file: repos/
# owner: root
# group: root
user::rwx
group::rwx
other::---
default:user::rwx
default:group::r-x
default:group:sambausers:rwx
default:mask::rwx
default:other::---
 
  


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
mv command and ACLs murraymn Linux - Security 7 05-03-2011 09:31 AM
help with permissions without using ACLs ehco2121 Linux - Newbie 1 02-09-2008 06:07 PM
Using Samba with ACLs drenze Linux - Server 1 10-19-2007 07:32 AM
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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