I've tried everything in the documentation but I can't get the default folder to change to another drive letter/folder on my system. Please help. Thanks!
I assume that it is a local drive. Did you try steps described at FAQ Can I change the location of home directories ?
Yes, I have tried the steps in FAQ but it doesn't work. The account logs into the ICW root directory, not the drive and folder I specified.
And yes, it's to a local drive, but not the root (c:) drive.
Here's how I did it. I also followed the FAQ's and other online resources, but I hope this condensed example helps. (I run Windows 7; CopSSH 4.4.0.)
I added the following line to the file etc/fstab (located in Program Files/ICW). You could also add the same line to an individual user's file, e.g. etc/fstab.d/username. This mounts the folder on drive X as the cygwin/CopSSH folder /customhome (customhome can be any valid folder name). The other options on the line are just copied from examples already in the file or online examples. Notice that the Windows path uses forward slashes "/" and not the Windows default backslash "\"):
X:/Serve/Users /customhome ntfs override,binary,noacl 0 0
Now in the etc/passwd file I edited/verified the user's home directory which is the second to last option on the line. Notice the home folder is specified using the cygwin/CopSSH mounted folder and not the Windows path--it must match the entry in fstab:
Thanks for the tips. Please remember that the current version of Control Panel overwrites home directory to /home if used. The following workaround can be used:
X:/Serve/Users /home ntfs override,binary,noacl 0 0
About | Terms & policy | Contact
© 2022 itefix.net