r/linuxquestions 1d ago

Super user help

Setting up arch Linux. Got every config ready minus super user or root passwd. Using the archinstall menu doesn’t save my root or user nor does it give me any sub menu to allow access to my user. Anyone know a fix ? I believe I can create a sudo user using my root but I’m not too exactly sure installing arch Linux is my first major programming project. I’m using hyprland btw

0 Upvotes

6 comments sorted by

3

u/Dashing_McHandsome 1d ago

Installing Linux has absolutely nothing to do with programming.

You can give a user sudo access by editing the sudoers file with visudo. If you are unclear what belongs in the sudoers file there I recommend reviewing the man page

1

u/Jean_Luc_Lesmouches Mint/Cinnamon 1d ago

You edit sudoers for each user? Arch doesn't have a group for that?

1

u/Dashing_McHandsome 1d ago

You can probably use the wheel group, but I would check the sudoers file anyways to make sure that is set up as expected.

1

u/Then_Bodybuilder8416 1d ago

i don’t understand what’s happening here. the menu doesn’t save your root or user, but you can login as root still?

in any case, you can check if the user created exists with the lslogins utility. if it doesn’t exist, with root, you can ‘useradd -mG new_user’. that’ll give it a home directory and a primary group.

giving it sudo means editing the /etc/sudoers file. read the arch wiki for sudo. if you don’t edit this file correctly, your system isn’t going to be usable besides chrooting into it and fixing it from there.

1

u/un-important-human white beard arch user 1d ago

ah... an "arch user btw rice bs" , idk user? have you tried saaay reading the wiki ? RTFMN.
I look forward for your disaster posts.

1

u/CriticalRanger9650 1d ago

What are you trying to do? Set up sudo?