Re: User name with spaces and Cygwin web site suggestion
On Mon, 6 Dec 2004, Nick Coghlan wrote: > Opening up /etc/passwd in a text editor and doing a search and replace for > "Nick > Coghlan" -> "NickCoghlan" worked fine for me. It makes Cygwin happy, and > Windows > gets to continue on in blithe ignorance of what is going on. Yes. I think that's the best solution by a lot and the only one that should be in the FAQ. Rodrigo -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: User name with spaces and Cygwin web site suggestion
On Mon, Dec 06, 2004 at 07:11:43PM +1000, Nick Coghlan wrote: >Now I just need someone to give CGF a hyperthreaded system so he can work >out what the heck is going on with hyperthreading, and all will be >wonderful ;) Yeah, if only "someone" could do that. Then the thousands of people using cygwin for free and, specifically, the scores of people seeing this problem would benefit. OTOH, I could just block any email containing "hyperthread.*". That would certainly benefit *me* personally, since I wouldn't have to see people ask about it, whine about it, and, eventually do nothing constructive to solve the problem. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: User name with spaces and Cygwin web site suggestion
Rodrigo de Salvo Braz wrote: On Sun, 5 Dec 2004, Pierre A. Humblet wrote: So you should do what the faq says. Thanks for the clarifications, Pierre, they will solve my problem. But one of the motivations of my original post was that I thought I had done what the faq says. I suggest it gets clarified; it says: "You can rename the user in the Windows User Manager GUI". I interpreted this to mean to go to Control Panel->User Accounts->Rename, and did it. I think many users will do the same. Also, as Coughlan pointed out, the real renaming may break many things and it may be good to alert users to that. Opening up /etc/passwd in a text editor and doing a search and replace for "Nick Coghlan" -> "NickCoghlan" worked fine for me. It makes Cygwin happy, and Windows gets to continue on in blithe ignorance of what is going on. Now I just need someone to give CGF a hyperthreaded system so he can work out what the heck is going on with hyperthreading, and all will be wonderful ;) Cheers, Nick. -- Nick Coghlan | [EMAIL PROTECTED] | Brisbane, Australia --- http://boredomandlaziness.skystorm.net -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: User name with spaces and Cygwin web site suggestion
On Sun, 5 Dec 2004, Pierre A. Humblet wrote: > So you should do what the faq says. Thanks for the clarifications, Pierre, they will solve my problem. But one of the motivations of my original post was that I thought I had done what the faq says. I suggest it gets clarified; it says: "You can rename the user in the Windows User Manager GUI". I interpreted this to mean to go to Control Panel->User Accounts->Rename, and did it. I think many users will do the same. Also, as Coughlan pointed out, the real renaming may break many things and it may be good to alert users to that. Also, the FAQ says: "run mkpasswd", without giving the info you gave me above which is essential. Thanks again, Rodrigo -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: User name with spaces and Cygwin web site suggestion
At 01:25 PM 12/5/2004 -0600, Rodrigo de Salvo Braz wrote: >On Sun, 5 Dec 2004, Pierre A. Humblet wrote: > >> Just type "mkpasswd -l" (assuming you are a local user) and send the output >> together with the name you use to login into Windows and the name reported >> by id -un. > >Thanks. Here it is: > >$ mkpasswd -l >Rodrigo Braz:unused_by_nt/2000/xp:1006:513:Rodrigo,U-RODRIGONOTEBOOK\Rodrigo >Braz,S-1-5-21-3615762775-3924064129-568730901-1006:/home/Rodrigo Braz:/bin/bash > >The Windows login name is "Rodrigo Braz", although now it changed to >"Rodrigo" on the screen (but looks like it is a superficial change). If the Windows login name is still "Rodrigo Braz", that means that you have not changed it. Have looked into Nick Coghlan's suggestion? >The cygwin page mentions running mkpassswd in a way that does change the >system, what is this way? "mkpasswd -l > /etc/passwd" Cygwin relies on /etc/passwd for things such as "id -un" mkpasswd is a program that essentially dumps the Windows user database into a Unix like format. For example your Windows login name appears just after U-RODRIGONOTEBOOK\ above, while your "name" appears just before. So you should do what the faq says. Either change your Windows login name to something without space and run "mkpasswd -l > /etc/passwd" or edit /etc/passwd and change the name (first field) in your record. You may also want to change your home directory (next to last field). Pierre -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: User name with spaces and Cygwin web site suggestion
On Sun, 5 Dec 2004, Nick Coghlan wrote: > Rodrigo de Salvo Braz wrote: > > id -un, as it is the case with ssh. Did I miss something or renaming the > > account really doesn't do anything to solve the problem? > > Did you rename the actual account using the Management Console (Control > Panel->Administrative Accounts->Computer Management), or did you change the > user > name in User Accounts (Control Panel->User Accounts)? > > The latter doesn't actually rename the account itself - it merely adds a "Full > Name" setting which is displayed by the Windows GUI instead of the actual > account name. Thanks. I will try that as soon as I figure out how to run mkpasswd. Meanwhile, it sounds like a good idea to include this bit of info as well as info on mkpasswd in the FAQ. Cheers, Rodrigo -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: User name with spaces and Cygwin web site suggestion
On Sat, 4 Dec 2004, Pierre A. Humblet wrote: > This is strange. Could you send us the output of mkpasswd and indicate > both the name you use to log in into Windows and the name returned by id -un I didn't run mkpasswd manually because I have changed the account user name before installing Cygwin and assumed that it would be run by the regular initialization. Isn't that the case? If not, and if I have to run it manually in this case too, it is not clear to me what I have to do. Documents I find for mkpasswd describe it as either printing user information or generating passwords, and it doesn't look like that's what I want to do here. I don't know what parameters to use. The mkpasswd I have installed seems to be useful only for printing /etc/passwd information. Can you help me here? Thanks, Rodrigo -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: User name with spaces and Cygwin web site suggestion
Rodrigo de Salvo Braz wrote: id -un, as it is the case with ssh. Did I miss something or renaming the account really doesn't do anything to solve the problem? Did you rename the actual account using the Management Console (Control Panel->Administrative Accounts->Computer Management), or did you change the user name in User Accounts (Control Panel->User Accounts)? The latter doesn't actually rename the account itself - it merely adds a "Full Name" setting which is displayed by the Windows GUI instead of the actual account name. Things like the location of your home directory will still be governed by the actual user name. I'm pretty sure the Management Console will "do the right thing" and actually change the account name properly, but I haven't tested it myself, as I'd prefer not to break anything (like, oh, say, Mozilla Foundation apps like Firefox and Thunderbird that don't use relative paths in their preference files) ;) Cheers, Nick. -- Nick Coghlan | [EMAIL PROTECTED] | Brisbane, Australia --- http://boredomandlaziness.skystorm.net -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: User name with spaces and Cygwin web site suggestion
On Sat, Dec 04, 2004 at 09:17:22PM -0600, Rodrigo de Salvo Braz wrote: > Hi, > > I had a Windows XP user account whose name had spaces. The Cygwin web site > says that you should change your account's user name to something without > spaces and, if Cygwin is already installed, re-run mkpasswd. Even before I > installed Cygwin, I changed my user name, but this did not solve the > problem because the command id -un used in /etc/profile to determine the > user continues returning the previous spaced user name. So I manually set > HOME and USER to the right thing in /etc/profile and at least I got the > home directory right and so on. But apparently some programs may still use > id -un, as it is the case with ssh. Did I miss something or renaming the > account really doesn't do anything to solve the problem? This is strange. Could you send us the output of mkpasswd and indicate both the name you use to log in into Windows and the name returned by id -un Pierre -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: User name with spaces and Cygwin web site suggestion
At 10:17 PM 12/4/2004, you wrote: >Hi, > >I had a Windows XP user account whose name had spaces. The Cygwin web site >says that you should change your account's user name to something without >spaces and, if Cygwin is already installed, re-run mkpasswd. Even before I >installed Cygwin, I changed my user name, but this did not solve the >problem because the command id -un used in /etc/profile to determine the >user continues returning the previous spaced user name. So I manually set >HOME and USER to the right thing in /etc/profile and at least I got the >home directory right and so on. But apparently some programs may still use >id -un, as it is the case with ssh. Did I miss something or renaming the >account really doesn't do anything to solve the problem? Just change your user name in the first field of /etc/passwd. That will take care of it. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
User name with spaces and Cygwin web site suggestion
Hi, I had a Windows XP user account whose name had spaces. The Cygwin web site says that you should change your account's user name to something without spaces and, if Cygwin is already installed, re-run mkpasswd. Even before I installed Cygwin, I changed my user name, but this did not solve the problem because the command id -un used in /etc/profile to determine the user continues returning the previous spaced user name. So I manually set HOME and USER to the right thing in /etc/profile and at least I got the home directory right and so on. But apparently some programs may still use id -un, as it is the case with ssh. Did I miss something or renaming the account really doesn't do anything to solve the problem? Thanks, Rodrigo -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/