Is there a way to change the root password while still logged in? I did something bad by accdient -_-
Posted
by
Robert
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Robert
Published on 2012-12-15T23:11:36Z
Indexed on
2012/12/15
23:19 UTC
Read the original article
Hit count: 250
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!
© Ask Ubuntu or respective owner