How do I change the default home directory after I fire up cygwin?
David T-G
d13@justpickone.org
Tue Jan 22 17:13:00 GMT 2013
Andrey & Yves, et atl --
...and then Andrey Repin said...
%
% > I start up cygwin and do pwd, and this is my home directory.
% > $ pwd
% > /cygdrive/h
%
...
%
% Check the contents of your $HOME variable.
But isn't $HOME set based on what the shell gets? So whatever is setting
it wrong is going to continue to do so as long as it gets garbage.
Yves, is this in an NT domain environment or standalone? You might go to
Control Panel -> System -> Advanced -> Environment Variables and check
for something like "profile directory" there; it's been a long time, but
I vaguely recall having a similar problem (before I for other reasons
just told them to get rid of my stupid H: drive that always got in the
way :-)
Here's how my system, under an NT domain, looks:
dt6667@gacdtl03dt6667 ~
$ egrep dt6667 /etc/passwd
dt6667:unused:1694918:544:U-ITSERVICES\DT6667,S-1-5-21-2057499049-1289676208-1959431660-1684918:/home/dt6667:/bin/bash
dt6667@gacdtl03dt6667 ~
$ df -kh /home
Filesystem Size Used Avail Use% Mounted on
C:/documents and settings 233G 226G 7.6G 97% /home
HTH & HAND
:-D
--
David T-G
See http://justpickone.org/davidtg/email/
See http://justpickone.org/davidtg/tofu.txt
I appreciate everyone's individual tactic in the Spam Wars, but I just
don't have the time or energy to captcha or register or whatever to be
able to send you email.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20130122/2afea353/attachment.sig>
More information about the Cygwin
mailing list