You are not logged in.

#1 2008-11-05 17:24:02

bdrive
Member
From: USA
Registered: 2008-10-27
Posts: 7

Pacman and setuid - Does pacman ignore the bit on install?

The flag is still set in the makepkg pkg tree, but it seems to get lost when pacman does the actual install onto the system.  Is this the expected behavior from pacman?

It's not really a big deal since I've just been using the install script to chmod the bit back, but I just wanted to check in case I missed something obvious.

Offline

#2 2008-11-05 17:33:44

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: Pacman and setuid - Does pacman ignore the bit on install?

Umm... Are you sure it's a good idea to make pacman setuid?

Offline

#3 2008-11-05 17:41:09

bdrive
Member
From: USA
Registered: 2008-10-27
Posts: 7

Re: Pacman and setuid - Does pacman ignore the bit on install?

I think you might have misunderstood me (or maybe vice versa).  I'm referring to setuid files being installed by pacman, not flagging pacman itself with setuid.

Last edited by bdrive (2008-11-05 18:11:00)

Offline

#4 2016-01-25 03:21:59

wil93
Member
From: Italy
Registered: 2013-09-15
Posts: 72

Re: Pacman and setuid - Does pacman ignore the bit on install?

I am still having this exact issue with pacman 4.2.1

Does anyone know if this is the correct behavior? (and if it is, why?)

Offline

#5 2016-02-01 02:20:06

wil93
Member
From: Italy
Registered: 2013-09-15
Posts: 72

Re: Pacman and setuid - Does pacman ignore the bit on install?

I solved the problem. In the end, the issue was really about the behavior of chown (which I had used in the install script).

To solve the problem, do chown first and then chmod, because chown removes the setuid bit (apparently for security reasons).

Offline

#6 2016-02-01 02:21:20

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Pacman and setuid - Does pacman ignore the bit on install?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB