User Tools

Site Tools


lost_password

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

lost_password [2016/03/20 16:14] – created 0.0.0.0lost_password [2016/03/25 09:35] (current) darky83
Line 2: Line 2:
  
 If you lost your (Mailwatch) login password, you can change the password if you can gain access to MySQL. If you lost your (Mailwatch) login password, you can change the password if you can gain access to MySQL.
 +
 +
 Execute the following modified command (replace <YourUsername> and <YourNewUserPassword>): Execute the following modified command (replace <YourUsername> and <YourNewUserPassword>):
 +
 +<code bash>
  /usr/bin/mysql -u mailwatch -p`cat /etc/EFA-Config | grep MAILWATCHSQLPWD | sed 's/.*://'` mailscanner -e "UPDATE users SET password = md5(**'<YourNewUserPassword>**') WHERE user=**'<YourUsername>**'"  /usr/bin/mysql -u mailwatch -p`cat /etc/EFA-Config | grep MAILWATCHSQLPWD | sed 's/.*://'` mailscanner -e "UPDATE users SET password = md5(**'<YourNewUserPassword>**') WHERE user=**'<YourUsername>**'"
 +</code>
  
 If you don't know the username anymore you can check all users with the following command: If you don't know the username anymore you can check all users with the following command:
 +<code bash>
   /usr/bin/mysql -u mailwatch -p`cat /etc/EFA-Config | grep MAILWATCHSQLPWD | sed 's/.*://'` mailscanner -e "select * from users"   /usr/bin/mysql -u mailwatch -p`cat /etc/EFA-Config | grep MAILWATCHSQLPWD | sed 's/.*://'` mailscanner -e "select * from users"
 +</code>
  
-[[Category:HOWTO]] 
lost_password.1458490497.txt.gz · Last modified: 2016/03/20 16:14 by 0.0.0.0