Re: Cygwin 1.3.19/bash prompt bug

2003-01-31 Thread Pavel Tsekov
Hello,

On Fri, 31 Jan 2003, James Begley wrote:

 Hi,
 
 I have just upgraded to the most recent version (1.3.19) of the cygwin dll, and 
 I have small, weird problem.  The bash prompt no longer shows the username 
 correctly - see examples below.  I am running cygwin from a Win2000 machine, 
 with service pack 3 installed.
 
 
 mao@hafnasandur ~
 $ id -un
 james
 


I've just posted about the same issue :) You are missing the entry for 
james in the /etc/passwd file. Update the passwd database with mkpasswd 
and you should be fine.



--
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/




Re: Cygwin 1.3.19/bash prompt bug

2003-01-31 Thread James Begley
Hi,

I've just posted about the same issue :) You are missing the entry for 
james in the /etc/passwd file. Update the passwd database with mkpasswd 
and you should be fine.

Thanks for that - I have now got it to work, but it wasnt quite as simple as it 
should have been!

The 'administrator' account (that I use infrequently to install/update software) 
is an account local to this PC.  The 'james' account (which I use all the time) 
is a network account, and doesnt show up in the Microsoft users and passwords 
tool.

So, after rummaging around in the registry to find out what the 'SID' of the 
network account was, I manually added this to the /etc/passwd file (using the 
helpful hints at http://www.cygwin.com/cygwin-ug-net/ntsec.html)

Having thought about it a bit, I'm not entirely sure why things did work with 
version 1.3.18, since there wasnt an entry in the /etc/passwd file.  However, 
the default guess that used to be there did work.

Thanks again,
James.

James Begley
-- 
Telephone: +354-552-0240.
Marine Research Institute,
Skulagata 4, P.O. Box 1390,
121 Reykjavik, Iceland.


--
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/




Re: Cygwin 1.3.19/bash prompt bug

2003-01-31 Thread Max Bowsher
James Begley wrote:
 I've just posted about the same issue :) You are missing the entry
 for 
 james in the /etc/passwd file. Update the passwd database with
 mkpasswd 
 and you should be fine.
 
 Thanks for that - I have now got it to work, but it wasnt quite as
 simple as it should have been!
 
 The 'administrator' account (that I use infrequently to
 install/update software) is an account local to this PC.  The 'james'
 account (which I use all the time) is a network account, and doesnt
 show up in the Microsoft users and passwords tool.
 
 So, after rummaging around in the registry to find out what the 'SID'
 of the network account was, I manually added this to the /etc/passwd
 file (using the helpful hints at
 http://www.cygwin.com/cygwin-ug-net/ntsec.html) 

How about:
$ mkpasswd -d -u james  /etc/passwd
No registry fiddling involved.

Max.


--
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/




Re: Cygwin 1.3.19/bash prompt bug

2003-01-31 Thread James Begley

How about:
$ mkpasswd -d -u james  /etc/passwd
No registry fiddling involved.


Yep, that worked just as well.  I might try that next time!

Thanks,
James.

James Begley
-- 
Telephone: +354-552-0240.
Marine Research Institute,
Skulagata 4, P.O. Box 1390,
121 Reykjavik, Iceland.


--
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/




Re: Cygwin 1.3.19/bash prompt bug

2003-01-31 Thread Jeffery B. Rancier
 Max == Max Bowsher [EMAIL PROTECTED] writes:

 How about:
 $ mkpasswd -d -u james  /etc/passwd
 No registry fiddling involved.

Nope, that didn't do it.  I added:

administrator
Administrator
ADMINISTRATOR

I exited and restarted, but still get garbage as the name.  I'm
running the cygwin.bat

,[ cygwin.bat ]
| @echo off
| 
| h:
| chdir h:\usr\pkg\cygwin\bin
| 
| bash --login -i
`

Other suggestions?
-- 

Thanks,
Jeff
,
| Jeffery B. Rancier
| 
| Softechnics
| a METTLER TOLEDO company
`


--
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/