Link to home
Start Free TrialLog in
Avatar of SamEdney
SamEdney

asked on

Inhereting permissions on folders including CVS

I run a Linux Fedora Core 1 server on our small office network, which works quite happily with few problems.

One issue that is bugging us is that when new folders are created, particularly when CVS'ing up new projects, the folder does not inherit the permissions of the parent folder.

This means that if I upload a new project, no one else can download and/or update it.

What do I need to do (CHMOD, CHOWN, CHGRP etc) to set the entire CVS root to allow this behaviour, without having it open to everyone (we have a user group called CVS)? I am fed up with having to go in to a terminal and update new projects!

Also, I want the same to happen on the file share folders, with permissions being set for different groups. Some will have read only, and others will have full access - but permissions should always be the same on every file / folder created in that folder... i.e. They should always be inherited from the parent.
ASKER CERTIFIED SOLUTION
Avatar of Duncan Roe
Duncan Roe
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of idt
idt

When setting up a cvs tree root directory,
make the ownership cvs:cvsusers
add all relevent users to cvsgroup
chmod g+s cvsroot //set user or group ID on execution (s)

and ll should show
drwxrwsr-x    7 cvs      cvsusers     4096 Mar  9 13:21 cvsroot/

then when new directories are made:
$ cd cvsroot
$ mkdir foo
$ ll
drwxrwsr-x    2 dan      cvsusers     4096 Mar 24 08:05 foo/

All can read, cvs works as it should, you get to sleep.

Daniel P.





you can change rights on the whole subtree by using the -R switch of the chmod command.
(also works with chown)
this could be automated by a cron JOB.
Yes you could use a cron, but the whole idea is to set it up right from the get go.
Avatar of SamEdney

ASKER

I have just tried out these ideas, and if it works will probably split the points. Sorry for the delay getting back to you... been busy!!