delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/03/07/20:05:41

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
From: David Rees <d DOT rees DOT l AT usa DOT net>
To: Corinna Vinschen <cygwin AT cygwin DOT com>
Subject: Re: Change user with the su command
Date: Wed, 07 Mar 2001 16:53:48 -0800
Message-ID: <1uldatocd3okkqa7c2t9pvjn6bnq07u6fb@4ax.com>
References: <5 DOT 0 DOT 2 DOT 1 DOT 0 DOT 20010307115502 DOT 00a61d50 AT pop DOT mail DOT yahoo DOT com> <20010307122748 DOT I21275 AT cygbert DOT vinschen DOT de>
In-Reply-To: <20010307122748.I21275@cygbert.vinschen.de>
X-Mailer: Forte Agent 1.8/32.548
MIME-Version: 1.0
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id UAA07641

Probably could use runas to start your bash shell as well...

d

On Wed, 7 Mar 2001 12:27:48 +0100, Corinna Vinschen wrote:

>On Wed, Mar 07, 2001 at 12:06:05PM +0100, Fabio Di Fabio wrote:
>> Hi,
>> 
>> after 5 years of Linux, now I'm installing open sorce tools to W2000 for 
>> web development, in particular the last tool I've installed is the 
>> PostgreSQL database, now it's running, I've some problem in understand the 
>> user management under cygwin, I work usually as administrator, which is 
>> like the root and unix, but for example I've created an user in w2000 
>> called postgres which manage the database, but now I don't know how to 
>> switch from administrator to postgres user without relogin in w2000, I've 
>> seen that the su command is here but it doesn't work like the linux su, 
>> because if from the administrator shell I excute "su postgres" I got this 
>> output:
>> 
>> 	su: cannot set user id: Not owner
>> 
>> I've search for documentation and in the archive of the mailing lists but I 
>> can't find something usefull, any help?
>
>To be able to switch user context on the command line your login
>needs special user rights. Read /usr/doc/Cygwin/inetutils-1.3.2.README
>which contains some details. Additionally don't use `su' but `login'
>to switch the user because it's really ported while su isn't.
>To understand the interaction of NT and Cygwin security using the
>`ntsec' option I suggest reading the online documentation
>http://cygwin.com/docs.html, especially the `ntsec' documentation
>http://cygwin.com/cygwin-ug-net/ntsec.html
>
>Corinna
>
>-- 
>Corinna Vinschen                  Please, send mails regarding Cygwin to
>Cygwin Developer                                mailto:cygwin AT cygwin DOT com
>Red Hat, Inc.


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