Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.
I've already add: RunAsUser=cvsnt In /etc/cvsnt/PServer. I copy the file from /etc/cvsnt/PServer.example and only write down my modification. Sorry, still not working by getting the following messages: $ /usr/local/bin/cvs -d :pserver:cvsnt at host:/usr/local/cvsroot login Logging in to :pserver:cvsnt at host:2401:/usr/local/cvsroot CVS password: cvs [login aborted]: authorization failed: server host rejected access to /usr/local/cvsroot for user cvsnt regards, commedo -----Original Message----- From: Richard Wirth [mailto:richard at wirthware.de] Sent: Selasa, 17 Mei 2005 21:50 comm To: commedo Subject: Re: [cvsnt] Can't log in to cvsnt 2.5.01 Hello commedo, Monday, May 16, 2005, 3:36:43 AM, you wrote: >> 1. The 'admin' file resides in <path to repository>/CVSROOT. Your path c> from above is missing a second (UPPERCASE) CVSROOT. c> Sorry, I'm miswritten only. What I mean is /usr/local/cvsroot/CVSROOT. c> For better assumption, I'll write down all steps I've done: c> (0) OS: RHEL AS 3 c> (1) I create user 'cvsnt' c> (2) /etc/cvsnt/PServer c> Repository0=/usr/local/cvsroot c> LockServer=localhost:2402 Here something is missing. Why don't you edit a copy of the PServer.example? You need at least one additional line: RunAsUser=cvsnt c> (3) /etc/xinet.d/cvsnt c> service cvspserver c> { c> disable = no c> socket_type = stream c> wait = no c> user = cvsnt c> group = cvsnt c> log_type = FILE /home/cvsnt/cvspserver.log c> env = 'HOME=/user/local/cvsroot' c> server = /usr/local/bin/cvsnt c> server_args = authserver c> } The cvs-process still has to be started as root/root. It will than switch to cvs when the user is authenticated. c> (4) I restart xinetd service, and cvslockd listen on port 2402 and c> cvspserver on port 2401 c> (5) I change ownership of /usr/local/cvsroot c> drwxrwsr-x 3 cvsnt cvsnt 4096 May 3 15:07 cvsroot c> (5) I change ownership of /usr/local/cvsroot/CVSROOT c> drwxrwsr-x 3 cvsnt cvsnt 4096 May 16 08:09 CVSROOT c> (6) I add 'cvsnt' in file /usr/local/cvsroot/CVSROOT/admin c> (7) I tried log in via SSH for user 'cvsnt' via SSH is OK (to test it) c> (8) I tried log in to CVSNT server as following: c> cvs -d :pserver:cvsnt at 192.168.50.41:/usr/local/cvsroot login c> Logging in to :pserver:cvsnt at 192.168.50.41:2401:/usr/local/cvsroot c> CVS password: c> cvs [login aborted]: authorization failed: server 192.168.50.41 rejected c> access to /usr/local/cvsroot for user cvsnt the rest looks quite ok. -- Best regards, Richard mailto:richard at wirthware.de