Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to add user on CVS linux

 
Rema Remulta
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Been reading the manual of cvs (cvshome.org)but it doesn't mention there on how to add user specifically. Any ideas ? Do you know any other good links that provides a manual of cvs for a beginner (linux beginner too) ?
Thanks
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just add a normal linux/unix user to your CVS machine. He/Seh only
needs rights to write/read in the CVSROOT folder. I normally create a
group cvs where i put all these user.
You need no special CVS setup.
 
Rema Remulta
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, already done that but there's a problem when accessing them in the client box.
Here it is:
$ cvs -d server:me@genesis.our.com:/repo/cvsroot login
& recv() from server genesis.our.com: connection reset by peer
any ideas?
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it seems your inetd knows nothing about cvs. Connection reset by peer means no process was listening to the port.
Add the following lines to your conf files:
/etc/inetd.conf.
cvspserver stream tcp nowait root /usr/bin/cvs cvs --allow-root=/cvs pserver
and
/etc/services should contain the line
cvspserver 2401/tcp
you can also check out this
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 11888
203
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are running xinetd instead of inetd (you will have an /etc/xined.conf file instead of an /etc/inetd.conf file) you will need to create a file named /etc/xinetd.d/cvs that contains lines similar to:

(I think this is correct: I hobbled it together based on Oliver's inetd.conf line)
You will have to reload the inetd or xinetd systems in order for the new configuration to take effect. On RedHat Linux you can do this by typing (as root) <code>/etc/init.d/xinetd reload</code>. Or you could do it manually: <code>kill -HUP `ps -elf | awk '/[x]inetd/{print $4}'`</code>
Regards, Andrew
 
Kent Emia
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is there a way to add only a cvs users not a system user? because i don't want everyone can login to our server here in our office... i just want them to be a pure cvs users?
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
give them no shell in you /etc/passwd. When someone logs then on he cannot do anything. (just enter /bin/xxxx)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic