delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/03/24/22:23:18

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Sun, 25 Mar 2001 05:22:52 +0200
From: Uwe Mayer <usb8 AT rz DOT uni-karlsruhe DOT de>
X-Mailer: The Bat! (v1.45) Personal
Reply-To: Uwe Mayer <merkosh AT planet-interkom DOT de>
X-Priority: 3 (Normal)
Message-ID: <979544714.20010325052252@planet-interkom.de>
To: Cygwin Mailinglist <cygwin AT cygwin DOT com>
Subject: login to bash
Mime-Version: 1.0

Hi,

I switched OS from 98 to win2k and cannot get the "login" to the bash
shell working. Also the "su" won't do its work.

Cygwin was installed from the internet using the setup tool supplied.
My win2k login is "merkosh". When I start Cygwin I land in
/home/merkosh. I imported the group and passwd settings with "mkgroup
-l >group" and "mkpasswd -l >passwd":

merkosh AT M111 /etc
$ cat group
Everyone:S-1-1-0:0:
SYSTEM:S-1-5-18:18:
None:S-1-5-21-1644491937-813497703-1957994488-513:513:
Administrators:S-1-5-32-544:544:
Backup Operators:S-1-5-32-551:551:
Guests:S-1-5-32-546:546:
Power Users:S-1-5-32-547:547:
Replicator:S-1-5-32-552:552:
Users:S-1-5-32-545:545:

merkosh AT M111 /etc
$ cat passwd
Everyone:*:0:0:,S-1-1-0::
SYSTEM:*:18:18:,S-1-5-18::
Administrators:*:544:544:,S-1-5-32-544::
Administrator::500:513:,S-1-5-21-1644491937-813497703-1957994488-500:/home/Administrator:/bin/sh
Guest::501:513:,S-1-5-21-1644491937-813497703-1957994488-501:/home/Guest:/bin/sh
merkosh::1000:513:Uwe Mayer,S-1-5-21-1644491937-813497703-1957994488-1000:/home/merkosh:/bin/sh

In the mailing list history I found out I hat to "set CYGWIN=ntsec"
and now the file permissions can be set.
However "login" won't accept "merkosh" or "Administrator" to log in
with the NT5 passwords. I wanted it to replace the "bash -i --login"
line in cygwin.bat I use to start Cygwin. I get the error msg "incorrect login"
When I try "su merkosh" the PS1 string is misinterpreted and the
prompt turns into:

merkosh AT M111 ~
$ su merkosh
\[\033]0;\w\007
\033[32m\]\u@\h \[\033[33m\w\033[0m\]
$

or:
merkosh AT M111 ~
$ su Administrator
su: cannot set user id: Not owner

Also I am wondering... since when I run Setup.exe to install Cygwin
the "CYGWIN=ntsec" wasn't set then. I only set it recently when
browsing the mailing list threads. Shouldn't I have to reassign the
all file access permissions?

I hope somebody can give me an idea where to start to get all this
working.

Ciao
Uwe



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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