Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com From: David Rees To: Corinna Vinschen 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 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit 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