setfacl on a directory


 
Thread Tools Search this Thread
Operating Systems Solaris setfacl on a directory
# 1  
Old 07-29-2010
setfacl on a directory

Hi All,

I am trying to set an ACL for a directory on my Solaris 10 box. I have an application which resides under /opt/CA directory. Application is installed by root and running as root. All log and configuration files are placed under /opt/CA as well.

What I am trying to do is granting access to a user on this application directory. I am using setfacl command as follows:

setfacl -r -m user:test:rwx,mask:rwx /opt/CA


and expecting user test to do everything under /opt/CA. After command execution, user test can create new files, read the current files but can not edit the current files that are owned by root. I can setfacl for the files this is ok for now. But my application is creating new log files that are owned by root so i need to setfacl again. Shortly, setfacl on files is not the solution.

Does anyone have such an occasion before ? What would be the solution in order to enable access to user test ?


Thanks,
Niyazi
# 2  
Old 09-14-2010
setfacl question

I have a scenario where my ACLs are as follows :
$ getfacl SCD
# file: SCD
# owner: jscdetst
# group: sad
user::rwx
user:saddev:rwx
group::rwx
mask::rwx
other::r-x
default:user::rw-
default:group::r--
default:mask::rw-
defaultSmiliether::---


Now when i go inside SCD directory and create a sample file f it shows me owning groups having rw- permissions..where as in the above ACL I had defined default group acl to be just r--.


$ cd SCD
$ touch f
$ ls -lrt f
-rw-rw----+ 1 jscdetst sad 0 Sep 14 11:52 f


More strangely, when I do getfacl f; it shows me the picture i want..but this seems to be not in consistency with what ls -lrt is showing me above :


$ getfacl f
# file: f
# owner: jscdetst
# group: sad
user::rw-
group::r--
mask::rw-
other::---

Why is owning group permissions different in ls -lrt and getfacl.
And if so, what are the real permissions?
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Setfacl and granting permissions to a group and its members on a directory

Hi! I created a group HACKERS and made the user "demo" its member. $ id demo uid=500(demo) gid=500(demo) groups=500(demo),502(HACKERS) $ Next, I granted read and execute permissions to the group "HACKERS" on /var/log/httpd as shown below: setfacl -m "g:HACKERS:r-x"... (2 Replies)
Discussion started by: indiansoil
2 Replies

2. UNIX for Dummies Questions & Answers

help needed with setfacl

Hi, On the setfacl, I am trying to make one user with no rwx privilleges. After reading the man page I still can't get it. Please let me know the correct command. set user - SAM to have NO rwx privilleges on NEW objects setfacl -dm user:sam:--- /opt set user - SAM to have NO... (2 Replies)
Discussion started by: samnyc
2 Replies

3. UNIX for Advanced & Expert Users

setfacl directory limit

hello, I am using XFS filesystem & ACL (setfacl/getfacl). I can set ACL entries only for 21 users per one directory. For the 22nd user it shows invalid argument. Has somebody the same problem? I need to override this limit. thnks in advance david (3 Replies)
Discussion started by: sigd
3 Replies

4. Solaris

Issue with setfacl

Hi Experts, I have set access control to a directory which is under / as /proj1 and set the access to user1 as below Once I logging as user1 I am able to create and modify the file which is created by user1 however I am unable to edit / modify the file which is own by root.... (14 Replies)
Discussion started by: kumarmani
14 Replies

5. Solaris

How to use setfacl

Hi all, If, for e.g. I have folder with permissions like this: drwxr-xr-x 2 fuad_ftp nms 96 Jan 8 13:55 test I want to give for user user123 acces rwx using setfacl: setfacl -m user:user123:rwx test But effective rights still is r-x because of mask... ... (1 Reply)
Discussion started by: nypreH
1 Replies

6. UNIX for Advanced & Expert Users

setfacl

I use: setfacl -m user:bbb:rwx folder1 to give user bbb the permission to go into my folder folder1, and cd folder1 setfacl -m user:bbb:rwx * to give bbb the permission under this folder. however, bbb can not cd to folder1, and got "permission denied" messages. the umask is... (3 Replies)
Discussion started by: fredao
3 Replies

7. Cybersecurity

Usage of setfacl

Hi, I have a directory with 700 permissions. I intend to give rwx privileges to a user which does not belong to the group. I am using the following command setfacl -m u:prod:rwx test when I checked the privileges using getfacl -a test the output was as follows: # file: test #... (1 Reply)
Discussion started by: chakri400
1 Replies
Login or Register to Ask a Question