[arch-haskell] Using makeahpkg

Magnus Therning magnus at therning.org
Sat Oct 12 07:40:21 UTC 2013

On Thu, Jul 26, 2012 at 08:06:39PM +0200, Alessandro Pezzoni wrote:
> From what I see in the 'makechrootpkg' script, when running 'makeahpkg'
> 'makepkg' gets called with:
> # sudo -u nobody makepkg -s --noconfirm -L
> If I try to do that from within the chroot I get the following error,
> when it comes to install the missing dependencies:
> sudo: effective uid is not 0, is sudo installed setuid root?
> A minimal test case confirms that this is a 'sudo' issue:
> # sudo -u nobody sudo
> sudo: effective uid is not 0, is sudo installed setuid root?
> Looking for that error message on the internet I get a FAQ about 'sudo'
> where they say that:
> "Sudo must be setuid root to do its work. Either /usr/local/bin/sudo is
> not owned by uid 0 or the setuid bit is not set."
> But 'ls -l /usr/bin/sudo' in the chroot gives me the expected result:
> ---s--x--x 1 root root 125834 May 31 11:37 /usr/bin/sudo
> At the moment I don't have a clue about what could be causing this
> problem, though.

This is a long shot, but how is the partition where your chroot lives
mounted?  There is an option to disallow setuid root on an entire
device by specifying 'nosuid' in /etc/fstab.


Magnus Therning                      OpenPGP: 0xAB4DFBA4 
email: magnus at therning.org   jabber: magnus at therning.org
twitter: magthe               http://therning.org/magnus

I invented the term Object-Oriented, and I can tell you I did not have
C++ in mind.
     -- Alan Kay
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/arch-haskell/attachments/20131012/b6a4ec93/attachment.sig>

More information about the arch-haskell mailing list