One user, many folders

0
We're trying to set up where the same user (based on username) can have different directories based on different passwords. I'm running into an issue where if a user logs in, the directory he gets first is locked into the system and cannot change. So that if I log in again with the same user and a new password tied to another directory, I still get the first directory. Is there any way to unlock this and re-add the user with a new directory? Right now, just calling SftpSshServer.Users.Remove() and SftpSshServer.Users.Add() doesn't do the trick, as it keeps the older directory
 
asked 4/27/2021 9:39:02 PM
add a comment

1 Answers

0
Hmm, that is normal behavior of an ordinary sftp server. Because no 2 dirs under the same username, so to speak. But there is an API to create this file system https://doc.componentpro.com/ComponentPro-SftpServer/ComponentPro-Net-Servers-UserList-Add(username, password, directory), the problem maybe you don't add it at the beginning I guess.
 
answered 5/15/2021 5:57:35 AM
add a comment

Your Answer

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