I mainly use Fedora and now Debian and I'm creating a new desktop for my parents. I've introduced them to Linux before and they were ok with using it but I have since provided them with a laptop that was Windows. Since they are familiar with Linux and now, only need things that I know work well on Linux (everything they need is via web), I'm building them a Linux desktop. They live out of state so going over and giving them access to their computer again and resetting their password is out of the question.
Option 1.
What I want to do is write a script that they can click from the login screen that will reset their password to a predetermined password but I don't know if it's possible to put something like that on the login and lock screen. That way, when they call me, I can tell them what that original password. They would log in with that password and it would require them to change it.
I would need one link for Mom and one link for Dad.
Option 2.
The alternative is setting up google authenticator login for my account only. Have them login as me and run the script on the desktop which would:
I'd set one for Mom and one for Pop.
Option 3.
Or I'd set everyone up with Google Authenticator login. I'd prefer the first option.
Option 1.
What I want to do is write a script that they can click from the login screen that will reset their password to a predetermined password but I don't know if it's possible to put something like that on the login and lock screen. That way, when they call me, I can tell them what that original password. They would log in with that password and it would require them to change it.
Code:
echo "changeme" | passwd --stdin mom -e
Option 2.
The alternative is setting up google authenticator login for my account only. Have them login as me and run the script on the desktop which would:
Code:
#!/usr/bin/bash
echo "changeme" | passwd --stdin mom -e # resets mom's password
systemctl restart gdm # Logs me out
I'd set one for Mom and one for Pop.
Option 3.
Or I'd set everyone up with Google Authenticator login. I'd prefer the first option.