LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 06-03-2008, 06:44 AM   #1
northwindrocker
LQ Newbie
 
Registered: May 2008
Posts: 9

Rep: Reputation: 0
CVS server Problem on Solaris 10


Hi everybody

I want to install cvs server on Solaris 10 X86,the step is this :

1, downloaded cvs tar package from www.cvshome.org the last version is cvs-1.11.23.tar.gz.and upload to the server by ftp, notice that before transit your package,the ftp should in bin mode just type "bin" command .
2,#gunzip cvs-1.11.23.tar.gz
#tar cvf cvs-1.11.23.tar
and
#./configure --prefix=/usr/local/cvs //point the install folder
#make
#make install
a little problem where I type make system report error that can't find the command,because I have changed the shell to bash. I fixed it by modify PATH
#PATH=/usr/sfw/bin:/usr/ccs/bin:$PATH; export PATH
after install, type cvs -version to test .

3,add a user cvsroot and the home is /export/home/cvsroot,and add a group cvs.
and init the cvs folder
# cvs -d /export/home/cvsroot init
and check /export/home/cvsroot there CVSROOT was created.

4,configured the services.my problem is here.
first edit /etc/services
#vi /etc/services

cvspserver 2401/tcp #cvs server tcp port

cvspserver 2401/udp #cvs server udp port

second edit /etc/inetd.conf
#vi /etc/inetd.conf
add
cvspserver stream tcp nowait root /usr/local/cvs/bin/cvs cvs --allow-root=/export/home/cvsroot pserver

attention: the words are in one line . and use inetd to manage cvs

# inetconv -i /etc/inetd.conf
and restart inetd
Restart inetd
#ps -ef |grep inetd
If inetd's proccess id is 1304, then using following command
#kill -1 1304

but the inetd is not restarted . and when I use telnet to check the cvs service it's failed

#telnet localhost 2401

the port is not open.


why ? anyone can help me ?
 
Old 06-03-2008, 08:27 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
I Solaris 10 the inetd services are controlled by smf. You have to use
Code:
inetconv
to convert the cvs entry in /etc/inetd.conf to the appropriate manifest files. Read this for more details.

Regards
 
Old 06-03-2008, 10:45 PM   #3
northwindrocker
LQ Newbie
 
Registered: May 2008
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bathory View Post
I Solaris 10 the inetd services are controlled by smf. You have to use
Code:
inetconv
to convert the cvs entry in /etc/inetd.conf to the appropriate manifest files. Read this for more details.

Regards

Thanks

The question when I was posted the article is can't reboot the inetd and can't open the cvs service. Later I just reboot the server.After reboot,the cvs service was opened . I can check it by #telnet localhost 2401
there has respone massage like this

Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Usage: -f [cvs-options] command [command-options-and-arguments]
where cvs-options are -q, -n, etc.
(specify --help-options for a list of options)
where command is add, admin, etc.
(specify --help-commands for a list of commands
or --help-synonyms for a list of command synonyms)
where command-options-and-arguments depend on the specific command
(specify -H followed by a command name for command-specific help)
Specify --help to receive this message

The Concurrent Versions System (CVS) is a tool for version control.
For CVS updates and additional information, see
the CVS home page at http://cvs.nongnu.org/

And I used cvs command in my windows client like this .

cvs -d server:cvsroot@192.168.101.154:2401:/export/home/cvsroot login

but when I type in the password, The server report error like this .

cvs [login aborted]: unrecongnized auth reponse from 192.168.101.154 : Usage -f [cvs-options]command[command-options-and-agreement]


why? is auth problem? how to fix it ?
 
Old 06-04-2008, 02:08 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
The question when I was posted the article is can't reboot the inetd and can't open the cvs service. Later I just reboot the server.After reboot,the cvs service was opened
With smf you have to use svcadm to enable/disable, or start/stop a service.
Quote:
why? is auth problem? how to fix it ?
Did you create a password for user cvsroot? You need a file under CVSROOT named passwd containing the users that have access to the pserver, along with their encrypted password. To create the encrypted password you can use either the passwd command (and copy the encrypted password from /etc/shadow, but keep in mind that's not secure to use the system users as cvs users), the apache htpasswd, or the following perl script:
Code:
#!/usr/bin/perl

srand (time());
my $randletter = "(int (rand (26)) + (int (rand (1) + .5) % 2 ? 65 : 97))";
my $salt = sprintf ("%c%c", eval $randletter, eval $randletter);
my $plaintext = shift;
my $crypttext = crypt ($plaintext, $salt);

print "${crypttext}\n";
The format of the file is: "user-id:encr-passwd:group".
 
Old 06-04-2008, 02:29 AM   #5
northwindrocker
LQ Newbie
 
Registered: May 2008
Posts: 9

Original Poster
Rep: Reputation: 0
I have create the passwd file in /export/home/cvsroot/CVSROOT ,first I used this
echo "cvsroot:IiPV....." > /export/home/cvsroot/CVSROOT/passwd

but the problem is same.
so I changed the /export/home/cvsroot/CVSROOT/config ,
SystemAuth=no
and clear the /export/home/cvsroot/CVSROOT/passwd cvsroot's password.
and the problem alse same.
so I can't find way to fix it .
 
Old 06-04-2008, 03:41 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Maybe there is a problem converting from inetd to smf. Try to use the -f option in the inetd.conf line:
Code:
cvspserver stream tcp nowait root /usr/local/cvs/bin/cvs cvs -f --allow-root=/export/home/cvsroot pserver
to see if it helps.
Or you can use telnet to debug the auth problem as described here
 
Old 06-04-2008, 04:29 AM   #7
northwindrocker
LQ Newbie
 
Registered: May 2008
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks a lot I'll try .
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to setup CVS server in Fedora7 and CVS client in Windows Xp? yashavanth_kumar Linux - Newbie 2 01-28-2008 08:48 PM
cvs repository cvs-1.11.21.tar.gz installation problem on redhat 5 linux version ajaytiwary Linux - Newbie 1 09-30-2007 12:58 PM
CVS Server Problem aarajthomas Linux - Software 2 12-07-2005 10:49 PM
problem logging into cvs server joehansen12 Linux - Software 1 10-13-2005 12:21 AM
CVS server authentication problem eduac Linux - Software 11 07-14-2005 06:55 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 12:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration