Forgotten password from the system and admin interface

Sometimes it may happen then the password is lost, forgotten or just doesn’t fit. The situation can be fixed on such a way:

There are two passwords - from OS (in the command line interface)

../_images/linux_faq_rest_password.png

and the password from the web interface where you work with StaffCop.

../_images/linux_faq_rest_password_2.png

Linux password

There is a number of ways to restore lost OS password, the easiest way is to boot from the same disk you used for installing the system and to reset it with the tools of the installer.

Boot from the boot image and chose /”restore the system/” in the menu.

../_images/linux_faq_rest_password_3.png

follow the tips of the installer until you enter the console.

then run the command

sudo passwd “youruser”

then input and confirm the new password.

if you don’t know your user name you can learn it in such a way:

cat /etc/passwd
../_images/linux_faq_rest_password_4.png

your user will have id 1000 and higher and will be situated on the lowest line.

those with id less than 1000 are situated higher as they are the system users, they require no changes.

Reset web interface password

To restore/change the web interface password you should run the following command in console

sudo staffcop passwd мойновыйсложныйпароль

enter the new password between quotation characters.

It will be the new password from web console admin