LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 08:23 AM   #1
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Rep: Reputation: 83
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, 12:54 PM   #2
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 53
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 01:00 PM.
 
Old 01-18-2005, 02:44 PM   #3
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 10:50 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration