LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-20-2003, 05:12 AM   #1
Clemente
Member
 
Registered: Aug 2003
Distribution: Debian, Ubuntu
Posts: 188

Rep: Reputation: 30
forced access permissions


Hi all,

I want to configure a directory that way, that all new created files/directories in it belong to one specific group.

Background:
I need a common directory for a subset of my users. They all belong to a unique group (say xyz), what is NOT their primary group.
The common directory permits access only to members of that group xyz.
Now, I want to secure, that all files, the groupmembers will create, will automatically belong to group xyz.

I tried the gid bit, what worked for the directory content. But any subdirectories fall out of that rule.
And other ways - I don't know. Something with a cron job, that chowns all the time does not seem very productive...

Does anyone know, how to realize this?
Thanks in advance,
Clemens
 
Old 11-20-2003, 05:35 AM   #2
hazza
Member
 
Registered: Nov 2003
Location: Australia
Distribution: Mandrake, SUSE, Fedora
Posts: 122

Rep: Reputation: 15
Have you tried something like

$ mkdir xyz
$ chgrp xyz xyz
$ chmod g+rwsX xyz

Anything created in that directory should take on the group xyz including new directories. If however you copy other directories into this directory with something like "cp -p FILE..." then the copied file will keep its uid and gid.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
security-access permissions kumary Linux - Newbie 7 12-03-2005 01:40 PM
NTFS access permissions ALInux Linux - General 3 10-16-2005 12:11 PM
Netatalk Access Permissions nutthick Linux - Networking 1 12-14-2004 08:25 AM
Drive access permissions Stephanie Linux - General 5 05-22-2002 07:20 AM
M$ Proxy with access permissions StuartGrant Linux - Newbie 4 05-31-2001 09:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:17 PM.

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