Wednesday, February 5, 2014

Windows 2008 server different ftp users to different directory




ftp directory D:\CESEIFTP, create folder D:\CESEIFTP\bcsimftp
1) Create new user bcsimftp, profile path and Local path under Profile D:\CESEIFTP\bcsimftp
D:\CESEIFTP\bcsimftp directory security inder properties, full control for bcsimftp
2)  Go to IIS manage, a ftp site already created for another user..
Add virtula directory
Alias: bcsimftp
Physical Path D:\\CESEIFTP\bcsimftp
connect as specific user, click set put user name bcsimftp and password
check Test Settings, both OK,
3) Double click ftp User Isolation, choose "User name Directory"
Now ftp for bcsimftp, go to D:\CESEIFTP\bcsimftp

repeat the same process, to create another  bcsimftp2 user, create folder D:\CESEIFTP\bcsimftp2
change file permission  D:\CESEIFTP\bcsimftp2 only for bcsimftp2, D:\CESEIFTP\bcsimftp only for bcsimftp, you may have some error message about inherit, go to file properties->security->Edit->Change special permission, unchecked in inherited from parents.

Now the ftp will go to home directory D:\CESEIFTP\bcsimftp or D:\CESEIFTP\bcsimftp2,
if you go up directory, you can see two directories, but one access is denied.

No comments:

Post a Comment