delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/12/02/15:45:51

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Tue, 2 Dec 2008 12:45:02 -0800 (PST)
From: T Z <tzadikem AT yahoo DOT com>
Reply-To: tzadikem AT yahoo DOT com
Subject: ssh-host-config problem on windows 2003, please help.
To: cygwin AT cygwin DOT com
MIME-Version: 1.0
Message-ID: <582532.8302.qm@web53310.mail.re2.yahoo.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

I am trying to automate my cygwin install on a windows 2003 box and have even done the following before ssh-host-config is run:

ntrights +r SeAssignPrimaryTokenPrivilege -u sshd
ntrights +r SeCreateTokenPrivilege -u sshd
ntrights +r SeDenyInteractiveLogonRight -u sshd
ntrights +r SeDenyNetworkLogonRight -u sshd
ntrights +r SeDenyRemoteInteractiveLogonRight -u sshd
ntrights +r SeIncreaseQuotaPrivilege -u sshd
ntrights +r SeServiceLogonRight -u sshd

ntrights +r SeAssignPrimaryTokenPrivilege -u cyg_server
ntrights +r SeCreateTokenPrivilege -u cyg_server
ntrights +r SeTcbPrivilege -u cyg_server
ntrights +r SeServiceLogonRight -u cyg_server
ntrights +r SeDenyRemoteInteractiveLogonRight -u cyg_server

net localgroup "administrators" sshd /add


and also
c:\cygwin\bin\bash.exe --login /bin/mkpasswd -l -d >/etc/passwd
c:\cygwin\bin\bash.exe --login /bin/mkgroup -l -d >/etc/group


but when I then run
c:\cygwin\bin\bash.exe --login /usr/bin/ssh-host-config --yes --cygwin ntsec --pwd loser as the administrator of the pc (not in domain) it seems to run fine thru most if the script but then when it gets to the line where it asks if you want to change the user of cyg_server it is AUTOMATICALLY answering yes which then I have to retype it in.  I am running version 2.573.2.3

what is the problem.  Can someone please help?



      

--
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