I was trying to fix an unrelated issue, when one site with a similar issue to mine suggested it could fixed with usermod -aG input myusername…but forgot the a flag. I managed to remove myself from the sudoers.
Thinking I could just fix it via the root command line, but usermod isn’t available there. I thought that if I change the root password, I boot normally, drop down to terminal screen, and login as root. Not only did I forget that I have root disabled, now I can’t login to my user account either through gdm or a terminal login.
I have tried manually editing /etc/group to add my account back into wheel, and have tried changing my password from the root terminal I used to to change my root password.
I made sure to touch /.autorelabel before rebooting each time I used the recovery root terminal mentioned in the link above.
I have been searching for hours how to fix this, and I have ran out of ideas. What else can I try to get my ability to login back?
I removed myself from input and wheel with gpasswd -d username input and gpasswd -d username wheel and still can’t boot.
Hit escape on plymouth and it looks like several services no longer have permission to run.
I don’t want to add myself to input. I just want to get back to being able to boot and login, and I am not sure what to look at or what to run despite my best googling
*I have one user account on this system. If there are an config files that would useful to post, I can post any config relevant to users, permissions, user setup, or anything requested.
*the problem was that I could no longer login into my system. Trying a solution added an additional issue
*Now, Several services daemons don’t have the permissions to start:
booted with f10, and ran passwd, changed the password. It said it changed it successfully
ran touch /.autorelabel followed by /sbin/reboot -f.
attempted a normal, got to the gnome login screen, clicked my username, and entered my password, which it said was wrong[/li]
re-entered my password several times, being very careful, and it kept saying it was wrong.
Dropped down to a terminal through ctrl+alt+f3, tried logging in, and it still said the pw is wrong
Repeated step 3
ran passwd -d username, this it was successful, I and repeated step 5
Clicked on my username and hit enter (seeing as my password should have been deleted in step 10). It told me my password was wrong
Repeated step 3
Ran passwd -d root(I realize this was stupid to run this), it said it was successful, and I repeated step 5
At the login screen, selected ‘not listed’, entered ‘root’ as the username, and entered no password. It said the password was wrong.
Tried the previous step after hitting ctrl+alt+f3 to access a tty. Same issue occured.
Repeated step 3, ran passwd, changed the password (it said successfully), and repeated step 5
Clicked ‘not listed’, entered the username root and entered the exact password I had just set. It said it was wrong. Tried a terminal login again with ctrl+alt+f3. It also said the password was wrong.
Repeated step 3, ran gpasswd -a myusername input and gpasswd -a myusername wheel, repeated step 5
Problem #2 started here, where multiple services won’t start (pictures above)
Did step 3 again, ran gpasswd -d myusername input, repeated step 5, and booting failed in the same manner
Did step 3 again, but this time I ran gpasswd -d myusername wheel, repeated step 5, and booting had the same issue
*my account was an administrator so it was in wheel
*no idea what is system or config file is broken, if that’s the question.
What I know:
I couldn’t log in as myself after running usermod -G input myusername followed.
Many services can’t start after running gpasswd -a myusername input, this prevents me from booting, and gpasswd -d myusername input doesn’t fix it
*I have no idea what command to run, config file to modify, or anything else about the source of the issue. All of those are variables.
*I have tried gpasswd, and it added an additional issue of many service daemons not able to start at boot, causing boot to fail
You removed groups from your username I think.
This shows what happens if the -a is not used.
(I run all this as the root user)
$ id barry
uid=1000(barry) gid=1000(barry) groups=1000(barry),10(wheel)
$ usermod -G input barry
$ id barry
uid=1000(barry) gid=1000(barry) groups=1000(barry),104(input)
# wheel is gone!
$ usermod -aG wheel barry
$ id barry
uid=1000(barry) gid=1000(barry) groups=1000(barry),10(wheel),104(input)
# -a added wheel and left input
Adding input to my user account did not break rebooting or logging in to KDE plasma.
Use id username to show what groups you have setup.
I am stuck in a live session transferring my files to a portable hard drive, in case I need to reinstall, and can’t find a way via google to use id on my installed system user via the live session.
I apologize if the following is of no use, but the following in my group file:
I don’t want to be redundant or annoying, but I need to emphasize that I am no longer trying to add myself to the input group. I don’t need to. I only brought that up because it was only after having ran usermod -G myusername input. I was trying to explain what I did before this issue occurred.
What I am trying to do right now
figure out why my booth services no longer have the permissions to start. If a dump of the boot log would be helpful, I can provide that.
figure out why my password was claimed to be incorrect at login prior to losing the ability to boot.
What I am not trying to do
Add myself to the input group
What I can’t do right now
Boot
What I don’t know
What part of the system/configuration is not permitting several services to not run
In your case, if your user is moved just in one group, the solution from @ersen is not helping you. Because you are moving yourselves just to one group again.
Unfortunately “sudo usermod -G input myusername” is not preserving your existing elevated groups (like wheel) … just puts you in the group you ask for additionaly.
Any user who fails to understand what a command may and should do (by reading the man page before using it) is asking for trouble when modifying users password, groups, etc.
The same applies by not understanding the current environment you may be in when executing commands.
In your post 8 above (which I quoted) you were currently running in single user mode as root and changed the root password. You did not change the password for your regular user.
Unfortunately the Manual is not actualized anymore for the Quick-Dock mentioned from the OP (until F36).
A actualized manual would be this here on Ostechnix
He not changed it, it has been deleted with -d parameter (step 10).
Login without PW is not possible by default.
On point 13 also the Root user got the pw deleted and got locked.
Quite a lot went wrong, incorrect manual and some commands to much where not have been listed.
Then there is a other quick doc about samba shares. There is definitely also a change needed to point out that usermod -G is just for new created users. If the user is in wheel and he does repeat the command to put him selves to the shared group.