delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/03/07/06:28:44

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: Wed, 7 Mar 2001 12:27:48 +0100
From: Corinna Vinschen <cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Change user with the su command
Message-ID: <20010307122748.I21275@cygbert.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <5 DOT 0 DOT 2 DOT 1 DOT 0 DOT 20010307115502 DOT 00a61d50 AT pop DOT mail DOT yahoo DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <5.0.2.1.0.20010307115502.00a61d50@pop.mail.yahoo.com>; from difabio@tiscalinet.it on Wed, Mar 07, 2001 at 12:06:05PM +0100

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