delorie.com/archives/browse.cgi | search |
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 |
Message-Id: | <4.3.1.2.20010110163827.021e72b8@pop.ma.ultranet.com> |
X-Sender: | lhall AT pop DOT ma DOT ultranet DOT com |
X-Mailer: | QUALCOMM Windows Eudora Version 4.3.1 |
Date: | Wed, 10 Jan 2001 16:45:00 -0500 |
To: | Dan Lipofsky <dlipofsky AT kurion DOT com>, cygwin AT cygwin DOT com |
From: | "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com> |
Subject: | RE: why am I administrator? |
In-Reply-To: | <81CC73FC2FACD311A2D200508B8B88AA1ADB07@kurion_exch.kurion. |
com> | |
Mime-Version: | 1.0 |
At 04:34 PM 1/10/2001, Dan Lipofsky wrote: > > > > USER=administrator but USERNAME=dlipofsky. > > > > USERNAME is set by the OS. Here is a dump of some enviroment > > > > variables, from bash and from the DOS prompt respectively. > > > >USER is set in the /etc/profile function by issuing the `id -un` > > >command. The id command gets it's name from the associated uid in the > > >/etc/passwd file. > > > > > >I can also guess that you are in the local administrator group and > > >logged on as a domain user. Upon setup a /etc/passwd file is created > > >from the local sid. You need to add your domain sid for your user > > >account. > > > This seems to come up allot. Maybe we need an FAQ for this? > >A FAQ would be great. Obviously there are major >passwd differences between cygwin and unix. > >I set up a line in /etc/passwd for dlipofsky with >a made-up UID and GID. This seems to work. Actually, this surprises me. I would've thought you would have wanted to change the name of the user in the /etc/passwd file that matched the output of "id -u". This is what I have. Of course, I made my /etc/passwd with mkpasswd which makes understanding what needs to be change moot AFAICS. >So what happened before I had this? It sounds like it couldn't >find dlipofsky so it just when with the default. Is that it? It uses whatever name is associated with the current user id. >Also what are the strings that look like >S-1-5-21-839522115-1060284298-1708537768-500 That's the Windows ID. See the mail archives and the user documentation on NTFS permissions for more info. Larry Hall lhall AT rfk DOT com RFK Partners, Inc. http://www.rfk.com 118 Washington Street (508) 893-9779 - RFK Office Holliston, MA 01746 (508) 893-9889 - FAX -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |