Is there a way to change the root password while still logged in? I did something bad by accdient -_-
- by Robert
So I was trying to add my printer, and I wasn't able to make any changes due to the fact that cups was not accepting my root password. I was Googling some changes and trying to fix the problem when one of the commands CHANGED MY SUDO PASSWORD! Can someone please tell me which one of these is the culprit? I was trying to these commands:
cat /etc/group | grep root
cat /etc/group | grep myUserName
usermod -a -G lpadmin myUserName
sudo usermod -a -G lpadmin myUserName
sudo gedit /etc/cups/cupsd.conf
lppasswd -a myUserName
lppasswd -a root
sudo lppasswd -a myUserName
I think it was this one, but I know which passwords I put in! There was nothing which I typed in besides my strong password or my easy temporary password. Unless I made a typo... please no.
restart cups
sudo password root
This is so not cool, I was just trying to add a printer :'( Please help my stupidity!