From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6795 invoked by alias); 11 Sep 2002 10:45:50 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 6743 invoked from network); 11 Sep 2002 10:45:44 -0000 Received: from unknown (HELO diver.doc.ic.ac.uk) (146.169.1.47) by sources.redhat.com with SMTP; 11 Sep 2002 10:45:44 -0000 Received: from [146.169.27.1] (helo=9RCRF0J) by diver.doc.ic.ac.uk with esmtp (Exim 3.16 #7) id 17p4zo-0008Cr-00 for cygwin@cygwin.com; Wed, 11 Sep 2002 11:45:20 +0100 From: "Chris January" To: Subject: cygwin login and passwords Date: Wed, 11 Sep 2002 04:31:00 -0000 Message-ID: <001e01c25980$572da3d0$2050b392@csc.mrc.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-SW-Source: 2002-09/txt/msg00505.txt.bz2 > > > > Is changing uid's and gid's in /etc/passwd something > > > > to be avoided, since I assume these are windows assigned? > > > > > > > > Need su and login to work seemlessly with windows' > > > > passwords in order to allow remote logins and ssh > > > > clients. Currently, login does not recognize valid > > > > windows passwords. > > > I have a version of su that runs on Cygwin. However I need someone to > > > > How are you doing that? If you're doing that by giving create > > token privileges or something like that to your account, that's > > not a vaild approach. I'm using LogonUser. On Windows XP, no extra privileges are needed to use that function. I know this isn't true on older versions of Windows, but this is mainly for my own use anyway. http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q180548& has some details of how to do the logon on older versions of Windows. This is just one way - I'm sure there are others. I might give it a go if anyone is interested. > > > > > If su is using a service under SYSTEM account, that's ok. But then > > it's not needed at all since one can just use `ssh localhost' and a > > running sshd to get the same. > > > > > tell me how to coerce bash into running interactively (currently needs > > > to be forced via -i flag). I'm starting bash using CreateProcess. > > > > Login shells get their name preceeded by a dash in argv[0] from their > > parent: > > > > -sh > > -bash Thanks for that! Chris -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/