info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Add/Import and directory perms...


From: Larry Jones
Subject: Re: Add/Import and directory perms...
Date: Fri, 26 Jan 2001 14:16:28 -0500 (EST)

Anders Knudsen writes:
> 
> Why did cvs not change the group to "cvsroot"?

Because when CVS changes user to the actual user, it also changes group
to the user's default group.

> I am using the workaround by manually doing a chmod g+s on newly imported 
> modules, however, there's got to be a better way. Or is this something CVS 
> does not handle? I was under the impression that since CVS runs as suid, 
> and group=cvsroot (from xinetd) that any newly created directories (or 
> files for that matter) would have a group id of cvsroot.

I think you want to do ``chmod -R g+s $CVSROOT'' -- having the SGID bit
set on a directory causes any new files or subdirectories to inherit the
directory's group ID rather that the current process's.

-Larry Jones

I don't NEED to compromise my principles, because they don't have
the slightest bearing on what happens to me anyway. -- Calvin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]