LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 01-18-2005, 07:23 AM   #1
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
setting a group for new files in a directory


How can I set the default group for new files in a directory?

I want the cvs repository's files created by developers to be set to the developers group so that other users can edit them.
 
Old 01-18-2005, 11:54 AM   #2
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
Have a look in "man mount" for setgid and grpid. I use grpid in fstab for a partition where I want users to be group of new files.

EDIT: re read your post and you don't mention a partition so: you can set the group of a directory to say devel , and do chmod g+s dirname
After that new files in that dir should have devel as group.

Last edited by makuyl; 01-18-2005 at 12:00 PM.
 
Old 01-18-2005, 01:44 PM   #3
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90
That's what I just read. Thank you for your interest. :-)
 
  


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
Multiple Group Rights to One Directory JWatson Linux - Security 4 12-31-2004 01:13 PM
Sendmail Group Writable Directory flipcode Linux - Security 0 12-23-2004 03:41 PM
How to change owner and group in a directory to include subdir and all files Lakota Linux - General 2 07-15-2004 09:35 AM
chmod for a group on a certain directory? mfeoli Linux - Newbie 1 02-10-2004 05:13 PM
question about user/group & directory... hct224 Linux - Newbie 2 10-11-2003 02:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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