SFTP login will not redirect to another drive folder

6 posts / 0 new
Last post
paul.bowman
Offline
Last seen: 8 years 9 months ago
Joined: 21.09.2012 - 16:03
SFTP login will not redirect to another drive folder

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!

itefix
Offline
Last seen: 2 days 1 hour ago
Joined: 01.05.2008 - 21:33
I assume that it is a local

I assume that it is a local drive. Did you try steps described at FAQ Can I change the location of home directories ?

paul.bowman
Offline
Last seen: 8 years 9 months ago
Joined: 21.09.2012 - 16:03
Yes, I have tried the steps

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.

paul.bowman
Offline
Last seen: 8 years 9 months ago
Joined: 21.09.2012 - 16:03
And yes, it's to a local

And yes, it's to a local drive, but not the root (c:) drive.

chemtamu
Offline
Last seen: 6 years 4 months ago
Joined: 23.08.2012 - 15:53
Here's how I did it.  I also

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:

username:unused:####:###:User Name,U-domain\username,S-####################:/customhome:/bin/bash

 

itefix
Offline
Last seen: 2 days 1 hour ago
Joined: 01.05.2008 - 21:33
Thanks for the tips. Please

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:

 

  • Specify /home directory as you've specified above:

X:/Serve/Users /home ntfs override,binary,noacl 0 0

  • Activate a user - a home directory will be created at <inst.dir>/home/<user>
  • Move <inst.dir>/home/<user> to x:\server\users