LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-11-2006, 08:11 PM   #1
jmkelm08
Member
 
Registered: Nov 2005
Posts: 33

Rep: Reputation: 15
Set default permissions for new files and folders


I have a Subversion repository setup in the /repo folder. The repository will work fine for a little while until a commit causes a new file to be made in the /repo/db folder. Then, nobody except root can access the repository because of the permissions on the new database file. I need to setup default permissions for the /repo folder and all subfolders so that they are +rwx for user=root and group=programmers whenever they are generated. If someone could give me some help I would appreciate it.

Thanks,
Jmkelm08
 
Old 09-11-2006, 08:26 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
To force all of the new files in a directory to have the same group membership as the directory itself, use chmod g+s on the directory. The existing files will have to be chmod'ed manually...

Have a look at http://rute.2038bug.com/node17.html.gz for a good explanation of file/directory permissions.
 
  


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
Group Permissions and Ownership of files and folders bugeyemonster Linux - General 1 04-19-2006 01:52 AM
permissions of files and folders binary_dreamer Linux - General 2 04-05-2006 11:13 PM
changing permissions and ownership on many files and folders Cinematography Linux - General 4 08-01-2005 03:20 AM
files&folders permissions under SAMBA share shani Linux - Software 2 11-20-2003 11:48 AM
NTFS- cannot alter permissions of files, only folders tomranson Linux - General 2 10-19-2003 03:27 AM

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

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