delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/06/26/23:31:46

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.20010626220952.020e1d60@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: Tue, 26 Jun 2001 22:10:30 -0400
To: "Karr, David" <david DOT karr AT cacheflow DOT com>,
"'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
From: "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com>
Subject: RE: whoami and ownership
In-Reply-To: <2C08D4EECBDED41184BB00D0B74733420473EDA8@exchanger.cachefl
ow.com>
Mime-Version: 1.0

Sorry, no.  Windows sets this variable.

Larry


At 06:52 PM 6/26/2001, Karr, David wrote:
>I happened to discover that there is an environment variable called
>"USERDOMAIN" that happens to be set to the domain my login is from.  I'm
>going to guess that Cygwin sets this somehow.  I can't find any
>documentation about it, or notes about it in the archive.  When and under
>what circumstances will this be set by Cygwin?  It would be nice if I could
>just reference this when I'm trying to initialize the /etc/passwd file.
>
>-----Original Message-----
>From: Karr, David [mailto:david DOT karr AT cacheflow DOT com]
>Sent: Tuesday, June 26, 2001 2:43 PM
>To: 'cygwin AT cygwin DOT com'
>Subject: RE: whoami and ownership
>
>
>After getting a quick lesson on how our network is structured, I find that
>the domain our PCs are on is NOT the domain we specify when we log in.  That
>seems bizarre to me, but that's how it's set up.  So, it looks like if I
>write a setup script to do this, I'll actually have to hardcode a domain
>name.  Yuck.
>
>-----Original Message-----
>From: Karr, David [mailto:david DOT karr AT cacheflow DOT com]
>Sent: Tuesday, June 26, 2001 1:08 PM
>To: 'cygwin AT cygwin DOT com'
>Subject: RE: whoami and ownership
>
>
>The point about specifying a different domain is apparently my problem.  By
>specifying the name of the domain that I select on the Windows login prompt,
>I got many more names, including mine (not to mention taking quite a long
>time to list).  I'm a little confused about why the "default domain" wasn't
>the domain that I logged in to, but perhaps those two things don't have
>anything to do with each other?
>
>-----Original Message-----
>From: Peter Buckley [mailto:peter DOT buckley AT cportcorp DOT com]
>Sent: Tuesday, June 26, 2001 12:16 PM
>To: 'Karr, David'; 'cygwin AT cygwin DOT com'
>Subject: RE: whoami and ownership
>
>
>Have you tried using
>
>mkpasswd -d | grep dkarr >> /etc/passwd
>
>This should search the domain for your username, and add that line 
>to the passwd file. I found this when I went to google and did a 
>search for "whoami site:cygwin.com". 
>
>I saw some responses from Corinna, but I don't know if any were the right 
>one. I searched on google for "whoami corinna site:cygwin.com". 
>The other thing to try is 
>
>mkpasswd -d domain_name > /etc/passwd
>
>just in case the default domain is different from the one you want 
>(I found this in the docs on mkpasswd I think).
>
>I find that the search page on the cygwin site isn't very helpful, 
>but google works great. After I looked up some of Earnie's posts, I found 
>out that great trick to enter a site to google's search terms. That has been
>
>very helpful in searching cygwin stuff. 
>
>Sorry I am sending this to you and the list, but my mailserver is really
>slow 
>with the cygwin list, so when I post things there it takes between 15 and 50
>
>minutes to show up, and I hope you get this in a timely fashion.
>
>Thanks,
>Peter
>
>-----Original Message-----
>From: Karr, David [mailto:david DOT karr AT cacheflow DOT com]
>Sent: Tuesday, June 26, 2001 2:35 PM
>To: cygwin AT cygwin DOT com
>Subject: RE: whoami and ownership
>
>
>I'd like to know the best answer for this also.  I just searched the
>archive, and I only find the statements about using "mkpasswd -d >
>/etc/passwd".  I can't find any statement from Corinna (or anyone else)
>saying to do something different.  In my case, I eventually just hand-edited
>the passwd file and added a line for myself.  For some reason, running
>"mkpasswd -d" gives me lots of names of people on the network, but NOT mine.
>
>(and note that using Outlook for mailing lists (others probably work
>similarly), in order to write a response to a note so that it goes to the
>list, I have to "Reply to All", and then MANUALLY remove the personal names
>from the "To" list.  If I just do a "Reply", the note ONLY goes to the
>original poster.  Part of the problem with notes going to people instead of
>the list is that the most common tool people will likely be using for
>mailing lists forces us to take manual steps to get it right.  When I
>respond to notes in GNUS, it just "does the right thing".)
>
>-----Original Message-----
>From: Larry Hall (RFK Partners Inc) [mailto:lhall AT rfk DOT com]
>Sent: Tuesday, June 26, 2001 10:26 AM
>To: JROZYCKI AT ebmail DOT gdeb DOT com; cygwin AT cygwin DOT com
>Subject: Re: whoami and ownership
>
>
>At 01:00 PM 6/26/2001, JROZYCKI AT ebmail DOT gdeb DOT com wrote:
> >When I run whoami, it echoes "Administrator"  but my NT login id is
>"jrozycki"
> >
> >How do I switch this so that when I create directories it puts the correct
> >username?  Mostly I want
> >to fix this for ssh. When I run ssh - it keeps trying to create
> >/home/Administrator/.ssh but can't.
> >I have tried changing some environmental variables such as:
> >export USER=jrozycki and export USERNAME=jrozycki but this did not work.
> >
>
>
>You should go looking in the email archives for Corinna's response to this
>question.  I forget the details although I know the solution is *not* to 
>change the /etc/passwd file as I once suggested.  Too bad I only remember
>the wrong way to do things. ;-)
>
>
>
>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
>
>
>--
>Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>Bug reporting:         http://cygwin.com/bugs.html
>Documentation:         http://cygwin.com/docs.html
>FAQ:                   http://cygwin.com/faq/
>
>--
>Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>Bug reporting:         http://cygwin.com/bugs.html
>Documentation:         http://cygwin.com/docs.html
>FAQ:                   http://cygwin.com/faq/
>
>--
>Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>Bug reporting:         http://cygwin.com/bugs.html
>Documentation:         http://cygwin.com/docs.html
>FAQ:                   http://cygwin.com/faq/
>
>--
>Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>Bug reporting:         http://cygwin.com/bugs.html
>Documentation:         http://cygwin.com/docs.html
>FAQ:                   http://cygwin.com/faq/
>
>--
>Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>Bug reporting:         http://cygwin.com/bugs.html
>Documentation:         http://cygwin.com/docs.html
>FAQ:                   http://cygwin.com/faq/


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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