1
I set up a user to ssh to Windows Server 2008 R2.
I was able to change de default directory.
The only piece I could not figure out is how to restrict user to just that directory.
In other word I don't want the user to be able to change directory.
Please advise.
EDIT:
This is where I stand:
- Cygwin Installed
- User (
James
) created in windows - Group (SftpUser) created in windows
SftpUser
is not showing in /etc/passwd- instead there is some
None
group which James is a member of - I can login with my user
cygdrive
anddev
directory are listed ( I do not want this)cygdrive
is empty
Here is the scenario
I want James
of sftpUser
group to be restricted to its upload folder.
The path is on an external drive:
D:\uploads\james_folder\
in cygwin
/cygdrive/d/uploads/james_folder/
I dont mind having the restriction on
/home/james/upload
And then mount the directory in the home path but it seems cygwin is not bundled with samba.
sshd_config
Match user james
ChrootDirectory /home/james/upload/
ForceCommand internal-sftp
I think the right way to do this is by setting the appropriate ACLs to deny James access to almost everything. – Gilles 'SO- stop being evil' – 2014-09-03T16:41:49.203
@Gilles thanks for your suggestion, how do I go about doing that – meda – 2014-09-03T16:46:15.177
If I knew, I'd have written an answer. I'm not a Windows expert. – Gilles 'SO- stop being evil' – 2014-09-03T17:06:23.953