You are not logged in.

#1 2017-10-06 18:33:21

wit221
Member
Registered: 2017-10-06
Posts: 2

[SOLVED] Cannot access root mode

I have just installed Arch. During installation, I forgot to add myself to the sudoers file. As such, any command that requires sudo, such as changing locale, or rebooting, fails. This also includes trying to edit the sudoers file. Hence, I am trapped in a vicious circle of non-root access. How do I get out of it?

Last edited by wit221 (2017-10-06 18:55:57)

Offline

#2 2017-10-06 18:35:00

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Cannot access root mode

Welcome to the forums wit211 smile

Why not just log in as root?

Last edited by Slithery (2017-10-06 18:40:02)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2017-10-06 18:39:44

wit221
Member
Registered: 2017-10-06
Posts: 2

Re: [SOLVED] Cannot access root mode

Thank you very much!

Offline

#4 2017-10-06 18:48:36

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Cannot access root mode

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2017-10-06 19:11:22

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,721
Website

Re: [SOLVED] Cannot access root mode

Mod note: not an installation issue, moving to NC.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

Board footer

Powered by FluxBB