Questions about sudo

Hi I’m new to ArchLabs.
During the installation I have the option to create user and root. If I use the same password for both, can I just use sudo when I want to install programs.

Yes, you can.

Although, I’m not sure how that will impact using sudo. Be better if you used different passwords for user and root accounts.

2 Likes

Welcome to the forum.

4 Likes

Welcome to the forums @Snubbi

3 Likes

No impact on using sudo. If root passwd is not selected, user’s passwd will be used as root’s by the installer. The user will be put in group “wheel” anyway.

   558      if [[ -z "${ans[4]}" && -z "${ans[5]}" ]]; then
   559        ans[4]="${ans[1]}"
   560        ans[5]="${ans[2]}"
   561      fi
1 Like

This can help you out also concerning sudo . From the Arch Wiki;

Welcome aboard @Snubbi

https://wiki.archlinux.org/title/Sudo

Welcome to the forum.

Personally I find having a different root password on a single user computer very pointless, you still have to verify one way or another when doing system management.

Now for systems used by multiple users I think it should have one admin and different user password.

Many distros have opted to disable the root account all together which I think makes a lot of sense these days.

3 Likes

Hi @Snubbi !!
With the caveat that my knowledge pales into insignificance compared to those above …

I always leave the root passwords blank in the installer so that root and user passwords are the same and I then use sudo with no problems

3 Likes
I always leave the root passwords blank in the installer so that root and user passwords are the same and I then use sudo with no problems

Thanks

1 Like

Shouldn’t Archlabs install sudo by default then?

“sudo” is installed by default. Check “BASE_PKGS” in the installer src.

That’s weird - using the latest iso, I’m having to install sudo manually.

check /var/log/pacman.log to see if the pkg was installed during installation.

Thanks - will do. Also having to manually install archlabs-baph package. Strange

It s weird as you said @knob ,have you tried to download another iso, might be that it s corrupt or whatever might have happened during download.

Yup will do

Hopefully it will work on your end.

It migh help out.

I wonder in what package sudo s included in archlabs.

I also wonder if one needs to make this command from this link posted a while ago, it can t be bad;

https://archlinux.org/news/switch-to-the-base-devel-meta-package-requires-manual-intervention/

1 Like

Thanks @altman.

For reference I am doing a bare minimum install (not selecting any wm or any additional packages) on a btrfs file system . . .

1 Like

If you have any archlabs- packages that failed install there should be a packages.sh script on your home directory that will install them

This will result in a very basic install without a lot of the basic packages. Essentially a standard Arch install with a few added bits.