X-Spam-Check-By: sourceware.org Subject: Re: can t run cygrunsrv -S sshd : win32 error 1058 From: Yohann Rebattu To: cygwin AT cygwin DOT com In-Reply-To: <45FF40BD.8000501@cygwin.com> References: <1174057385 DOT 4613 DOT 67 DOT camel AT yohann-desktop> <45FAC377 DOT 8020808 AT cygwin DOT com> <1174313862 DOT 4613 DOT 79 DOT camel AT yohann-desktop> <45FF00B6 DOT 4010708 AT cygwin DOT com> <1174351866 DOT 1236 DOT 4 DOT camel AT mail DOT rebattu DOT fr> <45FF40BD DOT 8000501 AT cygwin DOT com> Content-Type: text/plain; charset=ISO-8859-15 Date: Tue, 20 Mar 2007 07:53:52 +0100 Message-Id: <1174373632.1236.13.camel@mail.rebattu.fr> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Le lundi 19 mars 2007 à 22:02 -0400, Larry Hall (Cygwin) a écrit : > Yohann Rebattu wrote: > > Le lundi 19 mars 2007 à 17:29 -0400, Larry Hall (Cygwin) a écrit : > >> yohann rebattu wrote: > >>> Le vendredi 16 mars 2007 à 12:19 -0400, Larry Hall (Cygwin) a écrit : > >>>> Yohann Rebattu wrote: > >>>>> The service cannot be started, either because it is disabled or because > >>>>> it has no enabled devices associated with it.The service cannot be > >>>>> started, either because it is disabled or because it has no enabled > >>>>> devices associated with it. > >>>>> > >>>>> to get here i fallowed the aboves steps: > >>>>> > >>>>> run ms-dos command line windows > >>>>> type: change user /install > >>>>> > >>>>> install cygwin with all admin tools, openssh openssl tcp wrapper, vim, > >>>>> rsync. > >>>>> > >>>>> then run ssh-host-config. > >>>>> > >>>>> here i notice the fisrt odd thing: the sshd user is created but > >>>>> disabled. > >>>>> the cygwin ssh service is created. > >>>>> > >>>>> then i run cygrunsrv -S sshd > >>>>> and i got the error. > >>>>> > >>>>> i didn't dare just activate sshd user because: > >>>>> 1) last time i did this it didn't correct the error > >>>>> 2) i just reinstall cygwin, "from scratch" (i ran cygrunsrv -R sshd, > >>>>> then i deleted the entire e:\cygwin directory, and i deleted the entries > >>>>> HKEY-LOCAL-MACHINE/Software cygnus solution and > >>>>> HKEY/local-user/software/cygnus solution before to reinstall cygwin) > >>>>> > >>>>> and so i still get the error. > >>>>> please help me, i really don't know what to do more know, > >>>>> is there a spécial way to activate the user sshd? > >>>>> doe someone know why the sshd user have been created disabled? > >>>>> > >>>>> i'm a bit disapointed because since my first installation where i didn't > >>>>> know what to do to set the ssh server up, i did install cygwin on 3 > >>>>> other servers with no problem, and on this particular one it doesn't > >>>>> seems to work, could it be because it is a W2k server and the others > >>>>> were W2k3 windows server? > >>>> Maybe. I suggest enabling the sshd user first. If that doesn't work, > >>>> modify the ssh-host-config script to create a user to run 'sshd' as, > >>>> which is what happens on W2K3. > >>>> > >>>> > >>> Thank you for anwer me. > >>> > >>> so i fisrt try to enable the sshd user, then i ran > >>> > >>> cygrunsrv -S sshd > >>> > >>> i get the same error so i modify the ssh-user-config script: > >>> > >>> on line 436 i changed > >>> > >>> if [$_nt2003 -gt 0] > >>> in > >>> if [ 1 ] > >>> so i'm considered as runing on a w2k3. > >>> > >>> then ssh-host-config say me i appear to be running Windows 2003 and > >>> later systems... > >>> > >>> Shoulf this script create a new local acount sshd-server which has the > >>> required privilleges > >>> yes > >>> > >>> plese enter password for sshd_server > >>> password > >>> > >>> Error un addUserRights >>> 0xc000060=STATUS_NO_SUCHPRIVILLEGE > >>> > >>> Assingning the approproate privilleges to user 'sshd_server' failed! > >>> Can't create sshd service! > >>> > >>> i realy don't know what to do know > >>> any ideas? > >> Try running the script as "Administrator". > >> > > > > that's what i think i already do! > > is there some special kind of administrator? > > i just precise what i did so tell me if i'm not administrator: > > > > open windows session as "Administrateur" > > double clique cigwin icone on Desktop > > start the script: > > > > Administrateur AT buckey ~ > > $ ssh-host-config > > > Yes, that's what I was suggesting. I'm not sure why that wouldn't work > for you. Can you create a new user manually? If so, you can, in the > worst case, reproduce the steps the script performs manually and either > sidestep whatever issue you're seeing now or home in on the step that > is the problem. > > -- > Larry Hall http://www.rfk.com > RFK Partners, Inc. (508) 893-9779 - RFK Office > 216 Dalton Rd. (508) 893-9889 - FAX > Holliston, MA 01746 > > _____________________________________________________________________ > > A: Yes. > > Q: Are you sure? > >> A: Because it reverses the logical flow of conversation. > >>> Q: Why is top posting annoying in email? > > -- > 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/ thank you again! are the steps described somewhere else than in the script? (cause i'm neither unix guru (i mean sure to understand exactly what does the script) nor windows one (mean don't know a lot about windows comand and where to click to find them). but i no other place to lok for I will try to perform step by step what the script does, so i'll see where i'm stopped. any wat i'll try! -- 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/