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

update-aurto password is required #54

Closed
PoisonousJohn opened this issue Feb 26, 2021 · 2 comments
Closed

update-aurto password is required #54

PoisonousJohn opened this issue Feb 26, 2021 · 2 comments

Comments

@PoisonousJohn
Copy link

Hi, installed aurto and made aurto init.
Yet it fails to update packages with the following error:

  -- Journal begins at Wed 2020-10-14 12:48:22 MSK, ends at Fri 2021-02-26 14:27:48 MSK. --
  Feb 26 13:33:32 jp-laptop.local.domain update-aurto[114403]:  Using [aurto] repository
  Feb 26 13:33:34 jp-laptop.local.domain update-aurto[114403]:  Using [aurto] repository wee-slack: 2.6.0-1 -> 2.7.0-1
  Feb 26 13:33:34 jp-laptop.local.domain update-aurto[114403]:  Retrieving package files
  Feb 26 13:33:34 jp-laptop.local.domain update-aurto[114403]:  Retrieving package files Cloning into 'wee-slack'...
  Feb 26 13:33:35 jp-laptop.local.domain update-aurto[114403]:  Retrieving package files Running aur chroot --create --makepkg-conf /etc/aurto/makepkg-chroot.conf --pacman-conf /etc/aurto/pacman-chroot.conf
  Feb 26 13:33:35 jp-laptop.local.domain update-aurto[114403]:  Retrieving package files Running aur chroot --update --makepkg-conf /etc/aurto/makepkg-chroot.conf --pacman-conf /etc/aurto/pacman-chroot.conf
  Feb 26 13:33:35 jp-laptop.local.domain sudo[114597]: pam_unix(sudo:auth): conversation failed
  Feb 26 13:33:35 jp-laptop.local.domain sudo[114597]: pam_unix(sudo:auth): auth could not identify password for [jp]

What did I do wrong?

@alexheretic
Copy link
Owner

alexheretic commented Feb 27, 2021

update-aurto uses sudo -u "$user" to run aurutils, where $user is the user that ran aurto init.

Aurutils can also invoke sudo to get root access, in this case probably https://github.com/AladW/aurutils/blob/ad5b985e606caa4a3ac8ab99d6f9849a6286b708/lib/aur-chroot#L165.

To support this aurto installs some sudoers config at /etc/sudoers.d/50_aurto_passwordless for wheel group users.

It's possible your other sudoers/auth config could be conflicting with this. Or maybe your user is not in the wheel group?

@PoisonousJohn
Copy link
Author

PoisonousJohn commented Feb 28, 2021

Or maybe your user is not in the wheel group?

This is the case, thanks! Could not figure it out by looking at 50_aurto_passwordless

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

2 participants