Reply to topic

last and only user without admin privileges

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
4642
Karma
12
OS
which distribution?


Currently running Kubuntu 20.04, Plasma 5.18.5, Frameworks 5.68.0, Qt 5.12.8, kernel 5.4.0-34
FWIW: it is always useful to state the Plasma version and distribution when asking questions in this forum, makes it easier for us to help ...
koffeinfriedhof
Registered Member
Posts
100
Karma
0
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
100
Karma
0
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)

 
Reply to topic

Bookmarks



Who is online

Registered users: annyone, Baidu [Spider], Bing [Bot], bogkuz, claydoh, cmb, denispyr, Don B. Cilly, farid, gfielding, Google [Bot], ipwizard, Majestic-12 [Bot], ostroffjh, Section_8, shurato, Sogou [Bot], Steve R.