This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: whoami and ownership


did you try mkpasswd -d | grep -i <nt_login_name>


using grep -i ignores the case.
Our Sysadmins mixed the case; some user names were all lower case while others
were all upper case.








"Karr, David" <david.karr@cacheflow.com> on 06/26/2001 02:34:30 PM

To:   cygwin@cygwin.com
cc:    (bcc: Jeff Rozycki/EB/GDYN)
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@rfk.com]
Sent: Tuesday, June 26, 2001 10:26 AM
To: JROZYCKI@ebmail.gdeb.com; cygwin@cygwin.com
Subject: Re: whoami and ownership


At 01:00 PM 6/26/2001, JROZYCKI@ebmail.gdeb.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@rfk.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]