Setting group id problem
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Shell > Setting group id problem




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Setting group id problem  
Shaun Campbell


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-27-04 09:35 PM

I am installing cvs on Redhat Linux 7 and I am trying to set the group
automatically to the group of the repository no matter which group is the
login group of the person who creates a module or file.

For example I have a respository at /home/apt/dtp/cvsroot.

I set the permissions on the dtp directory by using the command

chgrp dtp /home/apt/dtp
chmod 6770 /home/apt/dtp.

The file permissions are:

drwsrws--- 4  apt   stp  4096 Mar 27 20:31 dtp

When a user creates a new module in cvs whose group is apt the module gets
created with the group apt not dtp as I expected.  This causes problems then
for users of cvs who belong to group dtp but apt. If I go into the directory
/home/apt/dtp/cvsroot and create a directory from the command line it has
the correct group of dtp.  If I go furhter down into the
/home/apt/dtp/cvsroot/demo directory and create a new directory it doesn't
have the correct group.

I thought by setting the directory permissions in this manner all the files
and directories created in the dtp repository would have a group set of dtp.
Any ideas what I am doing wrong or is something to do with the way cvs
works?

Thanks

Shaun









[ Post a follow-up to this message ]



    Re: Setting group id problem  
Alvin SIU


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-28-04 06:34 AM

Shaun Campbell wrote:
> I am installing cvs on Redhat Linux 7 and I am trying to set the group
> automatically to the group of the repository no matter which group is the
> login group of the person who creates a module or file.
>
> For example I have a respository at /home/apt/dtp/cvsroot.
>
> I set the permissions on the dtp directory by using the command
>
> chgrp dtp /home/apt/dtp
> chmod 6770 /home/apt/dtp.
>
> The file permissions are:
>
> drwsrws--- 4  apt   stp  4096 Mar 27 20:31 dtp
>
> When a user creates a new module in cvs whose group is apt the module gets
> created with the group apt not dtp as I expected.  This causes problems th
en
> for users of cvs who belong to group dtp but apt. If I go into the directo
ry
> /home/apt/dtp/cvsroot and create a directory from the command line it has
> the correct group of dtp.  If I go furhter down into the
> /home/apt/dtp/cvsroot/demo directory and create a new directory it doesn't
> have the correct group.
>
> I thought by setting the directory permissions in this manner all the file
s
> and directories created in the dtp repository would have a group set of dt
p.
> Any ideas what I am doing wrong or is something to do with the way cvs
> works?
>
> Thanks
>
> Shaun
>
>
>
>


Assuming that you are the user uuu
mkdir -m 777 /home/spt/dtp
chgrp dtp /home/spt/dtp
should create the directory
drwxrwxrwx 4  uuu   dtp  4096 Mar 27 20:31 dtp

Then,
chmod g+s dtp
should get
drwxrwsrwx 4  uuu   dtp  4096 Mar 27 20:31 dtp

Then, everything under the directory dtp should be created
with the group dtp regardless of the owner.

Alvin SIU






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 06:24 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register