Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is it possible to set your home directory /home/username to point to the contents in your Windows user folder C:\Users\Username. Sort of like a make the path /home/username a softlink to C:\Users\Username. I am interested in doing this because I access this machine with SSH often and I always have to move to the /cygdrive.. complicated path...

Ted.

share|improve this question

migrated from stackoverflow.com May 20 '11 at 6:23

This question came from our site for professional and enthusiast programmers.

    
let me know below if I misinterpreted the question. –  Orbit Mar 1 '11 at 21:18

3 Answers 3

Instead of creating a soft link, you could change your Cygwin home directory in /etc/passwd.

Also, the /cygdrive profix can be changed, e.g. to /mnt, or even just /, so that C: can be accessed as /c. See http://www.cygwin.com/cygwin-ug-net/using.html#cygdrive.

share|improve this answer

use..

 ln -s /home/username /your/windows/home

to create a symbolic link.

share|improve this answer
    
+1 I suggest that you mv /home/username /home/username.bak first, just in case you later regret this change. –  Dan Moulding Mar 1 '11 at 21:55
    
I guess the most refined question would be .. can you have a soft link for a home directory? –  Flethuseo Mar 1 '11 at 22:06
    
you can also set the user home directory in /etc/passwd –  Orbit Mar 1 '11 at 22:10
    
that seems to work well, thanks orbit. –  Flethuseo Mar 1 '11 at 22:41

As an admin:

mkpasswd -l -p /cygwin/c/Users > /etc/passwd
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.