Re: fresh install of 6.0 - cvs
Thanks again for all the help! I just finished a fresh install, logged in as root and updated the wsrc group on my user, then after login as the user was able to start up CVS with no issue at all. Just wanted to verify. On Fri, Sep 9, 2016 at 10:33 AM, Theo Buehler wrote: > On Fri, Sep 09, 2016 at 10:19:21AM -0400, Stephen Trotter wrote: > > Aha, this is probably what was going on. I used su to add my user to the > > group, then had just exited to my user shell to continue with the faq. > > I'll probably do a fresh install and ensure it works out, and to make > sure > > I don't have any issues with CVS. Thanks for the help! > > I added a couple of clarifications to faq5.html and anoncvs.html to > avoid this confusion in the future. Thanks for the report.
Re: fresh install of 6.0 - cvs
On Fri, Sep 09, 2016 at 10:19:21AM -0400, Stephen Trotter wrote: > Aha, this is probably what was going on. I used su to add my user to the > group, then had just exited to my user shell to continue with the faq. > I'll probably do a fresh install and ensure it works out, and to make sure > I don't have any issues with CVS. Thanks for the help! I added a couple of clarifications to faq5.html and anoncvs.html to avoid this confusion in the future. Thanks for the report.
Re: fresh install of 6.0 - cvs
Aha, this is probably what was going on. I used su to add my user to the group, then had just exited to my user shell to continue with the faq. I'll probably do a fresh install and ensure it works out, and to make sure I don't have any issues with CVS. Thanks for the help! Stephen J. Trotter On Fri, Sep 9, 2016 at 9:38 AM, Christian Weisgerber wrote: > On 2016-09-09, Theo Buehler wrote: > > > I tried myself on a fresh install, added my user to wsrc, and I can > > confirm that I got permission errors (write permissions denied to > > /usr/src) which went away after logging out and logging in again. > > Yes, you have to login again for the new group membership to be > active. > > -- > Christian "naddy" Weisgerber na...@mips.inka.de
Re: fresh install of 6.0 - cvs
On Fri, Sep 09, 2016 at 01:04:44PM BST, Stephen Trotter wrote: > Raf, > > Yes I was attempting to follow the instructions and was logged in as my > user, not as root. And I was pulling the src from cvs (for the first time) > and using the -r option for the stable version. Well, in order to avoid root privileges, first you need to run at least one command as root :^) > Theo, > > The user is a member of wsrc. That was part of the reason I was so confused > at the time. (I can't verify with id at the moment, but I did check > /etc/group to ensure the user was listed under wsrc.) If you had added the user to the 'wsrc' group using su(1) or using another terminal, then the change will obviously get reflected in the /etc/group file but it won't take immediate effect if the user is already logged on, so the easiest way is to simply re-logon. > I suspect that /usr is not owned by wsrc possibly, and that cvs was trying > to write to /usr but I cannot confirm right now. When I am able to, I will > run cvs again without the -q option and see if there is any extra detail I > can include. /usr does not and should not have the group set to 'wsrc'. If you had followed the information from FAQ then the cvs(1) command should only write to /usr/src directory, whose group is already set to 'wsrc'. Regards, Raf
Re: fresh install of 6.0 - cvs
On 2016-09-09, Theo Buehler wrote: > I tried myself on a fresh install, added my user to wsrc, and I can > confirm that I got permission errors (write permissions denied to > /usr/src) which went away after logging out and logging in again. Yes, you have to login again for the new group membership to be active. -- Christian "naddy" Weisgerber na...@mips.inka.de
Re: fresh install of 6.0 - cvs
On Fri, Sep 09, 2016 at 08:10:19AM -0400, Stephen Trotter wrote: > Also I should mention that I was able to get the commands to work by going > into /usr/src and running from there, but did find afterward that a new > copy of src was put into the folder ( i.e. /usr/src/src/ ) so I did end up > moving everything up a directory. I am not sure, will this affect cvs in > the future, or should I be ok as long as I run it with the full command to > pull the src, from /usr (oppossed to running the update command first)? I'd remove /usr/src/src, otherwise cvs will recurse into it and you'll end up having two full source trees (which will likely not fit on the default /usr/src partition). It is recommended that you work from a src tree based on /usr, not one level up, especially if you're new to this. I tried myself on a fresh install, added my user to wsrc, and I can confirm that I got permission errors (write permissions denied to /usr/src) which went away after logging out and logging in again. Not entirely sure what happened there... Will investigate this later. > > The user is a member of wsrc. That was part of the reason I was so > > confused at the time. (I can't verify with id at the moment, but I did > > check /etc/group to ensure the user was listed under wsrc.) > > > > I suspect that /usr is not owned by wsrc possibly, and that cvs was trying That shouldn't be necessary. /usr is root:wheel with 755 permissions. > > to write to /usr but I cannot confirm right now. When I am able to, I will > > run cvs again without the -q option and see if there is any extra detail I > > can include. > > > > Thanks, will reply again when I can run those. > > > > (As a side note, should doas be enabled by default? I don't recall any > > instruction in the faq on setting it up, but when I try to use it, it > > fails.) Doas is not enabled by default, you enable it by creating an /etc/doas.conf a line such as permit youruser as root should normally be enough. See also tedu's nice writeup here: http://www.tedunangst.com/flak/post/doas-mastery (note that the persist feature is only in -current).
Re: fresh install of 6.0 - cvs
Also I should mention that I was able to get the commands to work by going into /usr/src and running from there, but did find afterward that a new copy of src was put into the folder ( i.e. /usr/src/src/ ) so I did end up moving everything up a directory. I am not sure, will this affect cvs in the future, or should I be ok as long as I run it with the full command to pull the src, from /usr (oppossed to running the update command first)? On Sep 9, 2016 8:04 AM, "Stephen Trotter" wrote: > Raf, > > Yes I was attempting to follow the instructions and was logged in as my > user, not as root. And I was pulling the src from cvs (for the first time) > and using the -r option for the stable version. > > Theo, > > The user is a member of wsrc. That was part of the reason I was so > confused at the time. (I can't verify with id at the moment, but I did > check /etc/group to ensure the user was listed under wsrc.) > > I suspect that /usr is not owned by wsrc possibly, and that cvs was trying > to write to /usr but I cannot confirm right now. When I am able to, I will > run cvs again without the -q option and see if there is any extra detail I > can include. > > Thanks, will reply again when I can run those. > > (As a side note, should doas be enabled by default? I don't recall any > instruction in the faq on setting it up, but when I try to use it, it > fails.) > > On Sep 9, 2016 1:20 AM, "Theo Buehler" wrote: > >> On Fri, Sep 09, 2016 at 12:54:05AM -0400, Stephen Trotter wrote: >> > hi, >> > i was attempting a fresh install of 6.0 and got to the part where you >> pull >> > the source tree and update the system to stable. >> > i was stuck because the faq states you can (should) use a regular user >> with >> > cvs, and i kept getting a permission error from cvs when attempting to >> run >> > from /usr >> > so, just wondering if anyone else was getting this, or if there is >> > something that i missed. >> > >> >> Is your user member of the group wsrc? Use id(1), for example. >> >> By default, /usr/src is owned by root:wsrc with permissions 0775. This >> means that you need to be root or a member of group wsrc in order to >> write to it. FAQ 5 'avoiding root' tells you how to add your user to >> wsrc before running cvs: user mod -G wsrc youruser
Re: fresh install of 6.0 - cvs
Raf, Yes I was attempting to follow the instructions and was logged in as my user, not as root. And I was pulling the src from cvs (for the first time) and using the -r option for the stable version. Theo, The user is a member of wsrc. That was part of the reason I was so confused at the time. (I can't verify with id at the moment, but I did check /etc/group to ensure the user was listed under wsrc.) I suspect that /usr is not owned by wsrc possibly, and that cvs was trying to write to /usr but I cannot confirm right now. When I am able to, I will run cvs again without the -q option and see if there is any extra detail I can include. Thanks, will reply again when I can run those. (As a side note, should doas be enabled by default? I don't recall any instruction in the faq on setting it up, but when I try to use it, it fails.) On Sep 9, 2016 1:20 AM, "Theo Buehler" wrote: > On Fri, Sep 09, 2016 at 12:54:05AM -0400, Stephen Trotter wrote: > > hi, > > i was attempting a fresh install of 6.0 and got to the part where you > pull > > the source tree and update the system to stable. > > i was stuck because the faq states you can (should) use a regular user > with > > cvs, and i kept getting a permission error from cvs when attempting to > run > > from /usr > > so, just wondering if anyone else was getting this, or if there is > > something that i missed. > > > > Is your user member of the group wsrc? Use id(1), for example. > > By default, /usr/src is owned by root:wsrc with permissions 0775. This > means that you need to be root or a member of group wsrc in order to > write to it. FAQ 5 'avoiding root' tells you how to add your user to > wsrc before running cvs: user mod -G wsrc youruser
Re: fresh install of 6.0 - cvs
On Fri, Sep 09, 2016 at 05:54:05AM BST, Stephen Trotter wrote: > hi, > i was attempting a fresh install of 6.0 and got to the part where you pull > the source tree and update the system to stable. > i was stuck because the faq states you can (should) use a regular user with > cvs, and i kept getting a permission error from cvs when attempting to run > from /usr > so, just wondering if anyone else was getting this, or if there is > something that i missed. > Hi Stephen, Your description is very vague and you're not giving any details of which command you ran and what error messages you got. I'm trying to mind-read here - after issuing the commands described under "Avoiding root privileges", have you logged on as the user whom you just added to the 'wsrc' group? Regards, Raf
Re: fresh install of 6.0 - cvs
On Fri, Sep 09, 2016 at 12:54:05AM -0400, Stephen Trotter wrote: > hi, > i was attempting a fresh install of 6.0 and got to the part where you pull > the source tree and update the system to stable. > i was stuck because the faq states you can (should) use a regular user with > cvs, and i kept getting a permission error from cvs when attempting to run > from /usr > so, just wondering if anyone else was getting this, or if there is > something that i missed. > Is your user member of the group wsrc? Use id(1), for example. By default, /usr/src is owned by root:wsrc with permissions 0775. This means that you need to be root or a member of group wsrc in order to write to it. FAQ 5 'avoiding root' tells you how to add your user to wsrc before running cvs: user mod -G wsrc youruser
fresh install of 6.0 - cvs
hi, i was attempting a fresh install of 6.0 and got to the part where you pull the source tree and update the system to stable. i was stuck because the faq states you can (should) use a regular user with cvs, and i kept getting a permission error from cvs when attempting to run from /usr so, just wondering if anyone else was getting this, or if there is something that i missed.