This forum has been archived. All content is frozen. Please use KDE Discuss instead.

last and only user without admin privileges

Tags: None
(comma "," separated)
User avatar
mostly-harmless
Registered Member
Posts
2
Karma
0
In my experiments I was inaccurate enough to untick
"enable administrator privileges for this user"

checkmark on my only system user. xD

Now I cannot set in back.

How can I login as root to give back privileges to my user ? There is no user choose option at login screen.

Thanks!
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS
which distribution?


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
koffeinfriedhof
Registered Member
Posts
608
Karma
4
OS
You should boot from a live-medium and chroot into the installed system as root if your current root-account is passwordless.
User avatar
mostly-harmless
Registered Member
Posts
2
Karma
0
1.
My kubuntu version
> % uname -a
Linux kubuntu-dell 5.3.0-51-generic #44~18.04.2-Ubuntu SMP Thu Apr 23 14:27:18 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Should have mention it earlier, my bad

2.
I have never used chroot before. Made some googling, sounds like something I can do:
https://www.turnkeylinux.org/docs/chroo ... air-system
What do I do after I`m in?
Edit passwd ?
Or probably I shold better create new user with privileges?

3.
I am not sure if my root passwordless or not.
What is the default password if I never changed it? Empty?
koffeinfriedhof
Registered Member
Posts
608
Karma
4
OS
mostly-harmless wrote:2.

Re-add the user to the sudoers group with usermod -aG sudo YOUR_USERNAME
3.

The default password in Ubuntu is not set, so there is no root login allowed. (You may switch to a root shell with sudo -i or sudo -s anyways)


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]