Hello friends,
I am facing a problem in accessing CVS from a Linux server from remote
clients.First let me give the background of this problem:
What did I do?
1) Installed RH linux 7.1 with medium security option..
2) Uninstalled the CVS that had come already.
$ rpm -ev cvs<version>
3) Got the tarballs from cvshome.org => File name :cvs-1.11.1p1.tar.gz
4) Then untarred and installed:
$ ./configure --prefix=/opt/cvs # because I wanted to
install in /opt partition.
$ make
$ make install
5) The I created the user called CVS and I wanted his HomeFolder as the
CVSROOT.
6) So I set the env variable CVSROOT=/home/cvs. Then I set the
permissions on this folder in such a way that it is readable and
writable by all.
7) Then created the repository inside the CVSROOT.
What is happening?
1) Few outputs in machine are as follows.
[ME@Mymachine ME]# cat /etc/services |grep cvs
cvspserver 2401/tcp # CVS client/server
operations
cvspserver 2401/udp # CVS client/server
operations
=> which implies cvs is starting while rebooting..No need to to start
manually
[ME@Mymachine ME]# nmap localhost|grep cvs
2401/tcp open cvspserver
=>this I confirmed by telnetting at port 2401.
[ME@Mymachine ME]#cat /etc/xinetd.d/cvspserver
# default: on
# description: The telnet server serves telnet sessions; it uses \
# unencrypted username/password pairs for authentication.
service cvspserver
{
disable = no
socket_type = stream
port = 2401
protocol = tcp
wait = no
user = root
server = /opt/cvs/bin/cvs
server_args = -f --allow-root=/home/cvs pserver
log_on_failure += USERID
}
[ME@Mymachine ME] cat /etc/pam.d/rsh
#%PAM-1.0
# For root login to succeed here with pam_securetty, "rsh" must be
# listed in /etc/securetty.
auth required /lib/security/pam_nologin.so
auth required /lib/security/pam_securetty.so
auth required /lib/security/pam_env.so
auth required /lib/security/pam_rhosts_auth.so
account required /lib/security/pam_stack.so service=system-auth
session required /lib/security/pam_stack.so service=system-auth
[ME@Mymachine ME] cat .rhosts
clientmachineIPaddress ME
My problem is :
Although I am run all cvs commands locally, I am not able to run any of
the cvs commnds remotely. I want access cvs from Wincvs client.
I am trying connect through RSH and setting in wincvs for CVSROOT is NEW
CVSROOT: :ext:[EMAIL PROTECTED]:/cvs (.rhosts authentication)
When I try to update or import modules it shows following error:
cvs checkout <modulename> (in directory D:\Bugzilla)
cvs checkout: warning: unrecognized response `sh: cvs: command not
found' from cvs server
cvs [checkout aborted]: reading from server: Connection reset by peer
*****CVS exited normally with code 1*****
I did some tweaking and in /etc/pam.d/rsh changed all fields reading
required to sufficient , still I am gettng the same error.
If any of you faced similar problem, please let me know how to go about
it..
Basically, I thnk the problem is in RSH.It is not letting anyone to run
commands remotely.In CVSFAQ this problem is not addressed(AFAIK).
I know there was a similar thread in this list, those archives were also
not helpful.
Thanks in advance.
Have a great day..
Mahantesh.
PS:Sorry if the mail is too excruciatingly long to read :}.If I am
missing any info to be given, please feel free to revert on this.
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help