This is the mail archive of the 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]
Other format: [Raw text]

Re: Fixing Home and Passwd

On Sun, 14 Dec 2003, Joaquin wrote:

> Hi,
> After figuring out why my WinXP Pro install blows up mysteriously, I was
> thinking of creating some scripts to patch the scenario when accounts
> have spaces in them.
> I was going to make fixpasswd and fixhome scripts, which essentially
> take the first character and munge it with the first 7 chars of the
> preceeding name, and lower case it all.  Thus, "Howard Johnson" would
> become "hjohnson".
> I am wondering though, what else needs to be fixed up?
>  - Joaquin

Why not simply replace all spaces in the username and the home directory
with underscores?  Beware that HOME may be set to "Documents and
Settings/User name"...
      |\      _,,,---,,_
ZZZzz /,`.-'`'    -.  ;-;;,_
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

Unsubscribe info:
Problem reports:

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