delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=2.5 required=5.0 tests=AWL,BAYES_00,BOTNET |
X-Spam-Check-By: | sourceware.org |
Message-id: | <4B7BFD48.1040000@cygwin.com> |
Date: | Wed, 17 Feb 2010 09:29:28 -0500 |
From: | "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com> |
Reply-to: | cygwin AT cygwin DOT com |
User-Agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0 |
MIME-version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Problems with SU under Windows XP vs. Windows Server |
References: | <4B7BC319 DOT 7060703 AT gmx DOT net> |
In-reply-to: | <4B7BC319.7060703@gmx.net> |
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 |
On 02/17/2010 05:21 AM, Frank wrote: > Hello, > > I am experiencing difficulties using the SU utility. > > What am trying to do is the following: > From a service (running under SYSTEM account) I want to run SU to get > a bash shell script executed as a specific user. > > - When I do this on my Windows XP 32bit box, all is fine and SU runs my > script as the user (I verified this by running "whoami" inside the script). > > - When I do the very same on my Windows 2003 Server 64bit box, then SU > hangs forever and I assume it is waiting for a password. > > So why is this different behaviour on the two boxes? 'SYSTEM' on W2K3 doesn't have the rights to switch user context. Try installing 'openssh' and running 'ssh-host-config' to set up the 'cygserver' user and use that instead. Or run 'ssh-user-config' and just use SSH for everything where ever you need it. -- 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? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |