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 Message-ID: <50A89B19AEAAD411B9D200A0C9FB5699E88D53@craius.cportcorp.com> From: Peter Buckley To: "'Karr, David'" , "'cygwin AT cygwin DOT com'" Subject: RE: whoami and ownership Date: Tue, 26 Jun 2001 15:16:26 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" 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/