You are not logged in.

#1 2025-03-02 15:39:37

ryan0270
Member
Registered: 2010-08-31
Posts: 27

makepkg ignoring sudo timeout [SOLVED]

When using makepkg, it asks for my sudo password every time it needs it. First when installing dependencies, again when uninstalling makedepends, and again to install the built package.

I would expect to enter my password only that first time and then not need to again unless some step took longer than the sudo timeout (configured at the default 5mins). My old man memory swears this used to be the behavior, but I know for at least the last year or two I've been forced to type my password every time.

Is there a way to get the behavior I expect, where I enter the password just once? I'm not sure what configs I should post to help check if I have any bad settings...

Last edited by ryan0270 (2025-03-02 15:56:57)

Offline

#2 2025-03-02 15:47:02

seth
Member
Registered: 2012-09-03
Posts: 61,584

Offline

#3 2025-03-02 15:47:04

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,453

Re: makepkg ignoring sudo timeout [SOLVED]

makepkg is running random unchecked scripts in the form of the PKGBUILD. Letting that script run with access to sudo without any input would be very bad.

Offline

#4 2025-03-02 15:56:44

ryan0270
Member
Registered: 2010-08-31
Posts: 27

Re: makepkg ignoring sudo timeout [SOLVED]

@seth, perfect thanks.

@Scimmia, yes but when doing bulk updates of existing packages, asking for my password 20 times isn't any safer than asking for it once. I'm not going to carefully inspect every request enough to notice unusual behavior. Ideally, there would be a flag to force once behavior or the other. When doing bulk updates I would tell it to retain privileges but when installing a package for the first time I leave it asking for passwords every time.

Offline

Board footer

Powered by FluxBB