apache repository setup

John Evans johnevans123 at hotmail.com
Wed Aug 10 09:43:47 CDT 2005


>Do a "which hg" to find out where hg is in your path. Rename that script to 
>hg-real. Create a new script named hg in that folder, and chmod +x it. Your 
>new hg script should contain:
>
>#!/bin/sh
>umask 002
>sg dev_group_name /path/to/hg-real $*
>
thanks andrew (and matt). I tried looking at newgrp/sg and /etc/group etc 
for a
while now, and am stuck with not understanding the above command.  sg/newgrp 
does
not take an argument of a command following, just gives you a new login-like 
shell (FAICT).
so, when i do a "sg dev_group_name /usr/bin/hg-0.6b $*", then the hg portion
of the command is ignored, and i have a new shell prompt with new group
permissions.  i can then type exit to get back to my original shell with old 
group
permissions.  man newgrp isn't helping.  i can add "sh" in front of the sg 
and move
the hg command to another line in the shell script as follows:
#!/bin/sh
umask 002
sh sg dev_group_name
/usr/bin/hg-0.6b

but i think that adding the sh defeats the purpose of the "sg" command 
itself.
hmmm. so, i am not sure how to use sg/newgrp as you indicate... thanks
for any specific sg usage info here.

>
>umask always confuses me. This may not work at all. Perhaps someone else 
>can jump in and bail me out. Basically you want to accomplish an updated 
>umask, that'll leave g+rw in effect, and still have sg put you in the 
>proper group.
>
>You may still have to run some of Matt's suggested lines to sanitize the 
>permissions before it all works as expected. Something like the following 
>ought to fix it:
>
>chown je:dev_group_name ~/je-repo -R
>
>Please tell us about your final solution so the scenario can be documented 
>for future users.
>

I certainly will post my final solution.

j

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



More information about the Mercurial mailing list