Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial install failing - sudoers related #67

Closed
richeyward opened this issue Dec 16, 2018 · 5 comments
Closed

Initial install failing - sudoers related #67

richeyward opened this issue Dec 16, 2018 · 5 comments

Comments

@richeyward
Copy link

Hey Luke.
I installed a fresh build of Arch using pacstrap, etc. From that fresh build I ran LARBS which executed without errors. startx however threw a few errors so I knew something wasn't installed correctly.

Looking at the source, I see the manual install of yay, which was not installed on my host post script run, so I knew something was broken. Replicating the steps in the script manually, I saw that the pacman installed apps installed fine.

Yay's manual install however showed an interesting error:

sudo -u "" tar -zvf yay.tar.gz
"root is not in the sudoers file...."
It appears that the sudoers file is missing the following line....

root ALL=(ALL) ALL

Adding and rerunning LARBS seems to fix the issue,

@richeyward richeyward changed the title Initial install failing - possibly yay related. Initial install failing - sudoers related Dec 16, 2018
@LukeSmithxyz
Copy link
Owner

I'm not quite sure how root ALL=(ALL) ALL wasn't in your sudoers file. LARBS only temporarily adds some lines to to the sudoers file, but doesn't delete any. I assume that when you write sudo -i "" you are omitting the username? Of course it shouldn't work if $name isn't defined by the script.

Did you do anything irregular in your original Arch install? Did you install sudo manually? Or base-devel?

@richeyward
Copy link
Author

Hi Luke. Firstly, correction on the sudo -u"" above. The users username was in there, just the formatting in Github omitted it so it looks blank. The newly created user's name was in there.

Secondly, I recreated my steps... I installed Arch using the iso live image and pacstrap (base), and it seems that /etc/sudoers doesn't exist as sudo wasn't installed....

Manually installing sudo added the line by default, THEN running LARBS works.

For reference, I used the Arch install docs here.

@LukeSmithxyz
Copy link
Owner

LukeSmithxyz commented Dec 16, 2018 via email

@krook1024
Copy link

krook1024 commented Dec 24, 2018

I've just experienced this too when installing it on my X230. It's strange because I didn't have this issue when I installed LARBS on my T530 just two days ago.

I resolved this with doing pacman -Rscn sudo then pacman -S sudo it and editing /etc/sudoers manually, then proceeding with installing LARBS, but with the sudoers file editing method commented out. It works fine now.

@LukeSmithxyz
Copy link
Owner

I realized today that I had misordered something in the script to cause this problem, bit I've also added a failsafe that should copy over the newly produced sudoers file if there are any problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants