You are not logged in.

#1 2011-03-07 19:33:52

dedanna1029
Member
From: Cheyenne, WY, US
Registered: 2010-10-01
Posts: 98

yaourt password issue

Since update to yaourt as of October 21st, 2010, I've had an annoying niggle with entering my root password when it comes to the point of continuing a package installation. It wouldn't accept the root password three times, then would say, "You are not allowed to launch /usr/bin/pacman with sudo
Please enter root password", which I would a fourth time, and it would continue the installation. I kept quiet at the time, thinking that maybe updates would fix it.

However, with the update to yaourt as of night before last, the issue is now worse, and to top it off, it doesn't give me the "You are not allowed to launch /usr/bin/pacman with sudo" error.

I've searched throughout here, and haven't found a thread on this. If there is one, I apologize.

Would anyone have a clue as to what causes this, so I can fix it?

Thanks.

Offline

#2 2011-03-07 21:28:20

oliver
Member
Registered: 2007-12-12
Posts: 448

Re: yaourt password issue

the first issue sounds like your sudoers file is wrong.  Can you post the output from:

$ sudo -l

(that is dash ell)

The second issue might be related to the recent sudo upgrade.  There's supposed to be a fixed version in 'testing' that will hopefully hit 'core' soon

Offline

#3 2011-03-07 21:56:18

userlander
Member
Registered: 2008-08-23
Posts: 413

Re: yaourt password issue

I had the same issue. I fixed it by ditching yaourt (long overdue) and switching to packer. Clyde also looks worthwhile, but i haven't tried it yet. I don't think it can be worse than yaourt, and probably is a whole lot better.

Offline

#4 2011-03-07 23:29:17

dedanna1029
Member
From: Cheyenne, WY, US
Registered: 2010-10-01
Posts: 98

Re: yaourt password issue

Ah, I got it about the dash. Need to know what's after it, an L or a number1?

No worries, copied/pasted the command:

sudo -l
Password: 

User dedanna may run the following commands on this host:
    (ALL) ALL
    (ALL) ALL

Thanks for the responses, btw.

Edit: As an addendum here, as an fyi, I don't use sudo. I use su or su -, depending. Thanks.

Last edited by dedanna1029 (2011-03-07 23:31:15)

Offline

#5 2011-03-08 01:40:18

oliver
Member
Registered: 2007-12-12
Posts: 448

Re: yaourt password issue

in reading your original post again, it seems clear to me now that yaourt is calling sudo to install the package.  At that point, you're prompted to enter your login password (or the password of the user you're running yaourt as)... the standard config lets you try three times and since you're entering root's password it's failing. 

Then it probably just does an 'su root -c "pacman -U abc.xz"' where you're prompted to enter root's password (and the "4th" time, it works, but really it's the first time you've been asked for root's password)

The other issue I mentioned was that sudo now doesn't seem to like the " -v " option and apps that were using it are now failing (packer has that problem for one)

Offline

#6 2011-03-08 01:49:41

dedanna1029
Member
From: Cheyenne, WY, US
Registered: 2010-10-01
Posts: 98

Re: yaourt password issue

However, I've tried it with my user password as well, and it still no workie. :\

Originally, it worked with the su password, then it got updated, started the 3x thing, then was updated again, started up with the 6x thing. It had worked forever with the su password.

Last edited by dedanna1029 (2011-03-08 01:50:44)

Offline

#7 2011-03-08 01:51:34

oliver
Member
Registered: 2007-12-12
Posts: 448

Re: yaourt password issue

in that case - I have no clue - sorry.  Good luck

Offline

#8 2011-03-08 16:41:02

dedanna1029
Member
From: Cheyenne, WY, US
Registered: 2010-10-01
Posts: 98

Re: yaourt password issue

Our forum moderator had me try "yaourt -Syu" with sudo, and it worked with my user password. It didn't before, sorry, hadn't tried it recently, as I'm not a sudo user.
Normally, I had been starting yaourt as regular user, with just "yaourt <packagename>, then entering the root password when it asked for it. This had worked up until the last two yaourt updates.

Next time I have a package to install from AUR, I'll try the regular user password at the point where it asks for a password, rather than the su one, and will report back at that time as to whether it works now, where it hasn't before.

Thanks.

Last edited by dedanna1029 (2011-03-08 16:41:53)

Offline

#9 2015-01-17 16:26:52

AstroFloyd
Member
Registered: 2013-12-01
Posts: 7
Website

Re: yaourt password issue

I ended up here because of a similar issue - I found that I needed my user password on one machine, and the root password on another.  I noticed though how I was asked for '[sudo] password for user <name>:' in the first case and 'password:' in the second.  The problem was that on the second box, I didn't have sudo rights, hence I was asked for the root password instead.

I resolved this by uncommenting the line
# %wheel ALL=(ALL) ALL
in /etc/sudoers (and making sure my user was added to the wheel group).

BTW, running  sudo yaourt  beats the purpose, since it will do all its actions with root priviliges, not just the instaling bit, which is a security hazard.

Last edited by AstroFloyd (2015-01-17 16:31:39)

Offline

#10 2015-01-17 17:14:10

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,701

Re: yaourt password issue

AstroFloyd,

Welcome to Arch Linux.  Be careful of old threads -- this one has been dormant coming up on four years.   Your suggestion is relevant, by sadly I've not seen the OP in a long time.

I am going to go ahead and close this thread and let it rest in peace smile


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB