I have a Linux web server, and I've created a user (in/etc/passwd
) for a web designer. I pre-set her password and she uses the sftp
uploading capability of her web design software to upload content. This works, but I don't like the fact that there is no way for her to change her password on her own. The web design software (Dreamweaver) does not seem to provide this capability. What's the easiest way for me to provide this?
Allow ssh connection and change login shell to "/usr/bin/passwd". Then login to ssh:
Workaround (not bullet-proof, but working for casual usage) for disabling ssh, and allowing sftp is to put
passwd
to user profile; edit file~/.profile
(not yours, that user only), add lineto the end of the file.
It's possible to circumvent that, but if your web developer is not really malicious, it shouldn't be a problem.
Then when web developer connects using ssh (for example PuTTY for Windows), there is prompt for old password and then two prompts for new passwod: