how to change cpanel&ftp password ?

Hello

I have most of my users on my server had easy passwords sow every one can find the password easly
how to change all users cpanel&ftp  passwords for all users from ssh ?


thank you
xserverxAsked:
Who is Participating?
 
frankkyCommented:
Well it can depend on which unix/linux flavor you're using, personally I use chpasswd

login to your box and type sudo to switch to superuser (aka root) if not already logged in as root

then type

chpasswd username:password

for a more precise usage of the command I'd recommend you check the man page first on your box to see the specifics and flags that can be used on your box using:

man chpasswd
0
 
frankkyCommented:
Got confused with the usage myself, the way to use this is to type:

chpasswd <Enter>

then on each lin you type in

username:new_passwordusername2:new_password2

1 user per line

When your done you can use <ctrl> D and your passwords will get changed.
0
 
xserverxAuthor Commented:
is this also for Cpanel or just linux users change passwords ?
0
 
frankkyCommented:
CP accounts also have a linux account (that's how file permissions are handled) so for short...

Yes
0
 
xserverxAuthor Commented:
Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.