LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This 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


Reply
  Search this Thread
Old 04-07-2008, 12:42 PM   #1
ADxD_7
Member
 
Registered: May 2007
Location: CO
Distribution: Solaris , Redhat , Debian
Posts: 152

Rep: Reputation: 23
Group permisions on a directory


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.

Thanks in advance for any help.
 
Old 04-07-2008, 01:11 PM   #2
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
http://www.gnu.org/software/coreutil...uid-and-Setgid
 
Old 04-07-2008, 03:00 PM   #3
ADxD_7
Member
 
Registered: May 2007
Location: CO
Distribution: Solaris , Redhat , Debian
Posts: 152

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by raskin View Post
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.
 
Old 04-07-2008, 03:03 PM   #4
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
Hm, maybe now it is users' umask. But sometimes chaniging it in /etc/profile is enough.
 
Old 04-07-2008, 03:25 PM   #5
ADxD_7
Member
 
Registered: May 2007
Location: CO
Distribution: Solaris , Redhat , Debian
Posts: 152

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by raskin View Post
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

Last edited by ADxD_7; 04-07-2008 at 03:45 PM.
 
Old 04-08-2008, 09:47 AM   #6
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
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.
 
Old 04-08-2008, 11:48 AM   #7
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
I suspect this might be doable with ZFS NFSv4 ACLs and the propagate attribute flags.
 
Old 04-08-2008, 12:51 PM   #8
ADxD_7
Member
 
Registered: May 2007
Location: CO
Distribution: Solaris , Redhat , Debian
Posts: 152

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by jlliagre View Post
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.

Thanks for the advice

Last edited by ADxD_7; 04-08-2008 at 02:12 PM.
 
  


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
FC4 Restore Directory permisions joangopan Fedora 1 09-08-2007 05:11 PM
group and permisions? Four Linux - Newbie 2 12-21-2006 12:06 PM
ProFTPd - files and directory permisions flyinprogrogramer Linux - Software 2 02-16-2006 08:06 PM
howto chowto change file permisions in multiplhange file permisions in multiple dirs? pingvina Linux - Software 3 01-13-2006 03:10 PM
chmod for a group on a certain directory? mfeoli Linux - Newbie 1 02-10-2004 05:13 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

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