Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the best way to change a user-password remotely in Unix?

What is the best way to change a user-password remotely in Unix? This must be performed by the user, in a Web-app or Windows-App, without using SSH or any direct connection between the user and the server (direct command line not allowed).

Thanks


Webmin seemed to be a good application to do that, but I found it extremely hard to configure it right. My Unix users are unable to login to Webmin or Usermin.

Do you know any other alternatives to Webmin and Usermin?

Thanks

like image 372
RSilva Avatar asked Dec 06 '25 04:12

RSilva


2 Answers

Use Webmin (more specifically the UserMin module).

Webmin provides a mini webserver, so you just need to install and configure it slightly. You'll get a lot more than just password-changing, and you can remove functionality you don't want the user to have.

like image 140
gbjbaanb Avatar answered Dec 09 '25 04:12

gbjbaanb


@Rich Bradshaw

Just make sure you don't introduce security issues. The solution should use https encryption (the password should be never sent in clear text). It should be protected against shell injection attacks (strip any newlines from input, escape it properly etc). More details depend on choosen implementation.

like image 41
Paweł Hajdan Avatar answered Dec 09 '25 05:12

Paweł Hajdan