Does anyone know of a way to reset the password of one or more email addresses in a cPanel account from the command line?
Asked
Active
Viewed 1,827 times
1 Answers
2
can't be done with native cpanel functions by the CLI, however you could do it via the cPanel API using email::passwdpop. The only other thing would be to write your own script to modify /home/user/etc/shadow. I would recommend the API.

floodpants
- 326
- 1
- 2
- 7
-
Thanks. I guess I'll write a Python script to call the API. – Amged Rustom Sep 28 '13 at 16:00
-
Actually, you can. https://documentation.cpanel.net/display/DD/UAPI+Functions+-+Email%3A%3Apasswd_pop Example from docs: cpapi1 --user=username Email passwdpop user 12345luggage 500 example.com – Elias Torres Arroyo Jul 08 '18 at 02:49