delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/04/05/21:20:29

X-Spam-Check-By: sourceware.org
Message-ID: <9866635.post@talk.nabble.com>
Date: Thu, 5 Apr 2007 18:20:04 -0700 (PDT)
From: chaozh <quakelynx AT 163 DOT com>
To: cygwin AT cygwin DOT com
Subject: cvs login problem "authorization failed"?
MIME-Version: 1.0
X-Nabble-From: quakelynx AT 163 DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Because some reasons, I use window with domain user:chaozh. I
configured cvs with xinetd in cygwin and cvs started successfully,
because I can find the cvspserver port is listening through 'netstat -
a' command. So I used the following cmd to connect cvs repository:
cvs -d :pserver:chaozh AT chaozh-1:/cygdrive/f/CVSRepositories login
and the cmd response is:
Logging in to :pserver:chaozh AT chaozh-1:2401/cygdrive/f/CVSRepositories
CVS password:
cvs login: authorization failed: server chaozh-1 rejected access to /
cygdrive/f/CVSRepositories for user chaozh

I've alread used mkpasswd and mkgroup to add chaozh domain user to /
etc/passwd and add relative domain group to /etc/group. I also make
sure that the repository can be accessed by domain user:chaozh.

Then I tried to use cvs user instead of system user to authenticate. I
created passwd in repository and wrote:
zc:KahMKOz.EVIJM:cvsroot

cvsroot is my local user in windows, The login seems like success.
$ cvs -d :pserver:zc AT chaozh-1:/cygdrive/f/CVSRepositories login
Logging in to :pserver:zc AT chaozh-1:2401/cygdrive/f/CVSRepositories
CVS password:

$
But I always met the error when I excuted any cvs cmd:
$ cvs -d :pserver:zc AT chaozh-1:/cygdrive/f/CVSRepositories version
Client: Concurrent Versions System (CVS) 1.11.22 (client/server)
Fatal error, aborting.
: no such system user
Server:
CHAOZH AT chaozh-1 /etc/xinetd.d
$

So I'm confused and annoied. why is it? the telnet can work well, It
also use domain user. why?
Could anybody can help me?
Thanks a lot!

-------------------------------------------------------------
cvspserver for xinetd configuration:
# cvs server
service cvspserver
{
        disable                 = no
        flags                   = REUSE
        socket_type             = stream
        wait                    = no
        user                    = SYSTEM
        server                  = /usr/bin/cvs
        server_args             = -f --allow-root=/cygdrive/f/
CVSRepositories pserver
        log_on_success  += DURATION USERID
        log_on_failure  += USERID

}

------------------------------------------------------------------
some of my cygwin sysinfo:
Cygwin Configuration Diagnostics
Current System Time: Thu Apr 05 23:24:53 2007

Windows XP Professional Ver 5.1 Build 2600 Service Pack 2

Path:   D:\cygwin\usr\local\bin
        D:\cygwin\bin
        D:\cygwin\bin
        D:\cygwin\usr\X11R6\bin
        c:\Program Files\Support Tools\
        c:\Program Files\Common Files\Symbian\Tools
        c:\ClarifyCRM12iSR1.05\Configurator\Common Files\CCAutomation
        c:\ClarifyCRM12iSR1.05\ClarifyClient
        d:\Perl\bin\
        c:\WINDOWS\system32
        c:\WINDOWS
        c:\WINDOWS\System32\Wbem
        c:\oracle\ora81\bin
        c:\Program Files\Oracle\jre\1.1.7\bin
        d:\Program Files\WinSCP3\
        c:\Program Files\Rational\ClearCase\bin
        c:\Program Files\Rational\common
        c:\clearcase\perl\bin
        d:\dtdtools\tools\idce\v8\bin
        c:\Program Files\Rational\ClearCase\bin
        c:\Program Files\Common Files\GTK\2.0\bin
        c:\Program Files\Hummingbird\Connectivity\11.00\Accessories\
        D:\cygwin\bin
        c:\Program Files\Java\j2re1.4.2_08\bin
        d:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT
        d:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin
        d:\Program Files\Microsoft Visual Studio\Common\Tools
        d:\Program Files\Microsoft Visual Studio\VC98\bin
        d:\SirCC\Perl\bin
        \\cm-cyd\cmtools\cicm_NEU\bin
        \\cm-cyd\cmtools\cicm_NEU\sbin
        \\cm-cyd\ccase_rls\tools\WINDOWS\bin
        c:\Symbian\9.1\S60_3rd_MR_2\Epoc32\tools
        c:\Program Files\Rational\ClearCase\bin
        D:\cygwin\bin
        D:\cygwin\lib\lapack

Output from D:\cygwin\bin\id.exe (nontsec)
UID: 277095(CHAOZH)                   GID: 10513(Domain Users)
544(Administrators)                   547(Power Users)
545(Users)                            1004(Authorized Users)
1006(Offer Remote Assistance Helpers) 10513(Domain Users)
290950(IPCENTREX)                     202346(LS_SMSEnabled3)
271297(suplab)

Output from D:\cygwin\bin\id.exe (ntsec)
UID: 277095(CHAOZH)                   GID: 10513(Domain Users)
544(Administrators)                   547(Power Users)
545(Users)                            1004(Authorized Users)
1006(Offer Remote Assistance Helpers) 10513(Domain Users)
290950(IPCENTREX)                     202346(LS_SMSEnabled3)
271297(suplab)

SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS

USER = 'CHAOZH'
PWD = '/etc/xinetd.d'
CYGWIN = 'ntsec'
HOME = '/home/CHAOZH'
MAKE_MODE = 'unix'

Use '-r' to scan registry

c:  hd  NTFS     20002Mb  59% CP CS UN PA FC     PCSRP31
d:  hd  NTFS     20300Mb  98% CP CS UN PA FC     DATA
e:  cd             N/A    N/A
f:  hd  NTFS     35989Mb  97% CP CS UN PA FC
g:  cd             N/A    N/A
m:  net MVFS      1000Mb  50% CP CS              CCase

D:\cygwin      /          system  binmode
D:\cygwin/bin  /usr/bin   system  binmode
D:\cygwin/lib  /usr/lib   system  binmode
.              /cygdrive  system  binmode,cygdrive

Found: D:\cygwin\bin\awk.exe
Found: D:\cygwin\bin\bash.exe
....

  
-- 
View this message in context: http://www.nabble.com/cvs-login-problem-%22authorization-failed%22--tf3534849.html#a9866635
Sent from the Cygwin Users mailing list archive at Nabble.com.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019