delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/06/23/11:38:49

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
content-class: urn:content-classes:message
MIME-Version: 1.0
X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0
Subject: RE: User names with spaces
Date: Mon, 23 Jun 2003 10:30:36 -0500
Message-ID: <03C99898510C8C47945B932907D99AAA02E75E@E2KMEMMCS1.ftbco.ftn.com>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
From: "DePriest, Jason R." <jrdepriest AT ftb DOT com>
To: <cygwin AT cygwin DOT com>
X-DCC-FTBDCCD2-Metrics: dns1 1131; Body=1 Fuz1=1 Fuz2=1
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id h5NFcmV31167

Yes.
Cygwin only really cares about the SSID.
Say my local administrator account is 'Administrator' with an SSID of
S-1-5-21-1111111111-1111111111-1111111111-500.
However, I want cygwin to call it 'root' and call it's home directory
'admin'.
So the line in /etc/passwd would look like this:
root::500:513:U-LOCALHOST\Administrator,S-1-5-21-1111111111-1111111111-1
111111111-500:/home/admin:/bin/bash

And everything works great.
When I open up cygwin, I get this:

root AT LOCALHOST ~
$ pwd
/home/admin
root AT LOCALHOST ~
$ 

> -----Original Message-----
> From: andrew brian clegg [mailto:a DOT clegg AT mail DOT cryst DOT bbk DOT ac DOT uk] 
> Sent: Monday, June 23, 2003 10:17 AM
> To: cygwin AT cygwin DOT com
> Cc: Igor Pechtchanski
> Subject: Re: User names with spaces
> 
> 
> 
> 
> On Mon, 23 Jun 2003, Igor Pechtchanski wrote:
> 
> > > However I'd like to just change the name of the old 
> account using XP Pro's
> > > facilities for doing so, so I can keep all of my old 
> settings etc., and
> > > just rename my cygwin home dir to match. Has anyone tried 
> this? I don't
> > > want to mess everything up and end up having to reinstall 
> lots of stuff.
> > 
> > Andrew,
> > 
> > Why not simply edit the /etc/passwd entry?
> 
> Umm -- because I'm still slightly hazy and over-cautious about the
> interaction between Windows accounts and cygwin accounts? :)
> 
> I take it then that if I (for example) just change the space to an 
> underscore in my /etc/passwd entry and in "/home/Andrew 
> Clegg/" it'll all 
> work swimmingly when I log back in -- terrific.
> 
> Cheers for the hint,
> 
> Andrew.
> 
> 
> 
> --
> 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/
> 

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

- Raw text -


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