When I configured ProFTPD to use as SFTP, i stumbled on the problem I had no permissions to overwrite a file. I found that I had to go to:
Webmin → Servers → ProFTPD Server → Access Control
And then set “Allow overwriting of files?” to ‘yes’.
Than all works fine. I wonder why is this not the default setting? I mean, you want to be able to overwrite files in 99% of the cases and if not, you could switch it of. Or did I overlooked something here?
I understand that the ‘default’ is in our case not allowed overwriting. But I mean, would it not be handy if the setting in Virtualmin would be default ‘yes’ instead of ‘default’. Seems to me much more people will struggle with this not?
As I typically use command line sftp I can’t answer that. I’ll ‘assume’ that your typical web designer would be the typical user? I don’t know what they see on their end with the client software. Does their client prompt? If so, I’d guess that would be the correct default. If it straight up disallows over writing, then that would be a bad choice.
It will display some ‘permission denied’ error. Which is confusing, because you got read permission and see all directories and files in your FTP program, “so why can’t I upload new files but not existing ones?!”
Maybe it has a good reason why this is by default. But for newbies this might be confusing were to look to change this, like me and Smedby.
Haha, yeah maybe. It works flawless after switching that setting though. And I’m still attached to it, like sftp plugin in vscode, it’s baked into my workflow.
p.s. is there a way to use only ssh? I’m not aware of this. Always open to new ideas.
I think you mean SCP, already got that, did not realize that is was SSH file transfer
No not FTP, but SFTP should be fine, got the SSH encryption over it.
Excellent topic about the default settings, will bookmark that one (could use some cleaning haha)
look fella simply filezilla will allow you to use ssh without even knowing you are on ssh… do your research please. If you have trouble to do so - I guess we have nothing to talk about - ftp is ancient rubbish and dangerous… do your research.
anything is better then ftp… scp? is that windows ? be it… windows now support ssh… so no scp or whatever…
been abused on this forums a lot… all I am saying is true - ftp is no longer secure and should not be used unless on your home network for some file sharing - even smb is more secure than ftp…
edit: for sake of security, windows 11 and 11 now support ssh