sftpgo
sftpgo copied to clipboard
[Bug]: Local Disk - Home Directory Not Updating
⚠️ This issue respects the following points: ⚠️
- [X] This is a bug, not a question or a configuration issue.
- [X] This issue is not already reported on Github (I've searched it).
Bug description
I am not sure if this is truly a bug, or maybe I am using the system wrong, but my home directories aren't "updating" (causing the client to see the new home directory). I am running SFTP Go on a Windows Server 2022 machine. All of my users are set to just have password authentication. I'm not doing anything complex, just a simple SFTP server. All the users are set to File System: Local Disk. When I create a user, and set the Root Directory, the user is, as expected, put into that directory as their "root" directory on login.
The problem, is that if I update the Root Directory to a different directory, then the client, even on reconnect, isn't put into this new directory.
I have tried setting to another weird directory, connecting, reconnecting, refreshing, nothing works. I even tried restarting the Windows service.
The only way I have found to get the update to occur is recreating the user.
I am using the web interface to edit the user information. The user is edited with /web/admin/users. The change shows up in /web/admin/users/json. I even poked around some of the files in the "Data" directory and the "sftpgo.db" seems to have the change as well.
Again, this might be a problem with my configuration, but there seems to be a disconnect between the UI/configuration and the actual SFTP server.
Steps to reproduce
Expected behavior
I would expect the user to be updated to the new root directory when it is changed in the UI.
SFTPGo version
v2.6.2_windows_x86_64
Data provider
Local Disk
Installation method
Other
Configuration
The main change I made was switching the SFTP port to 22. I also have config changes to allow the web interface to use SSL, as well as SMTP. All these changes are through environmental variables.
Relevant log output
No response
What are you using SFTPGo for?
Medium business
Additional info
No response