Solaris / OpenSolarisThis forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I know this may be common knowledge to some but I have never ran into this situation before.
What I have are 2 seperate groups that wanted me to create another secondary group for just certain users to be in so those users and only those users could execute certain things. So I did that no problem.
The problem is that they want everything that is created in a certain directory to be owned by the secondary group. I think it has to do with the umask or setfacl but I do not know.
That works kinda, it sets the GID right everytime but sets the permissions on the directorys and files all funky even though I specify in the command to make it u=rwx,g=rwx,o=r it makes everything that is created in that directory look like -rwxr--r-- and I need it to be just like the other directory.
Hm, maybe now it is users' umask. But sometimes chaniging it in /etc/profile is enough.
Let me expain even better because I think I made it sound too complicated - lets say I have this
# ls -ald SATEST
drwxrwxr-- user1 group2 /SATEST
Lets say most people are in group1, this directory I made group2 and I want every directory and file created in this to be owned by group2 and to have the same group permissions " rwx " is thier an easy(or not easy) way to do this?
Or even just having a certain umask apply only to this directory would work as well
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900
Rep:
Owner can override access permissions on file being created. And umask is per-process tree. So I doubt that you can actually create a directory with the properties you want. Maybe using some FUSE filesystem.. Or with a cron job to chmod the files.
I suspect this might be doable with ZFS NFSv4 ACLs and the propagate attribute flags.
I will see...but for now I will just have to find something because I was trying to just use ACLs and they are not doing the trick, because as I learned they do not work over the NFS version we use at the moment.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.