Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

shadow-4.1.5.1-r1 install failed [SOLVED]

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
selig
Guru
Guru
User avatar
Posts: 425
Joined: Sun Jul 31, 2005 4:58 pm
Location: Prague, Czech Republic

shadow-4.1.5.1-r1 install failed [SOLVED]

  • Quote

Post by selig » Thu Jul 11, 2013 8:20 am

I am having problems updating shadow on a new install of Gentoo. I am still running it from the install CD and doing this in a chroot. It looks like it cannot set SUID permissions for some reason?

Code: Select all

libtool: install: /usr/bin/install -c vipw /var/tmp/portage/sys-apps/shadow-4.1.5.1-r1/image//usr/sbin/vipw
make[2]: Leaving directory `/var/tmp/portage/sys-apps/shadow-4.1.5.1-r1/work/shadow-4.1.5.1/src'
ln -sf newgrp	/var/tmp/portage/sys-apps/shadow-4.1.5.1-r1/image//usr/bin/sg
ln -sf vipw	/var/tmp/portage/sys-apps/shadow-4.1.5.1-r1/image//usr/sbin/vigr
for i in su; do \
	chmod -f 4711 /var/tmp/portage/sys-apps/shadow-4.1.5.1-r1/image//bin/$i; \
done
make[1]: *** [install-am] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-apps/shadow-4.1.5.1-r1/work/shadow-4.1.5.1/src'
make: *** [install-recursive] Error 1
emake failed
 * ERROR: sys-apps/shadow-4.1.5.1-r1 failed (install phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  93:  Called src_install
 *   environment, line 3020:  Called die
 * The specific snippet of code:
 *       emake DESTDIR="${D}" suidperms=4711 install || die;
Last edited by selig on Sun Jul 14, 2013 8:49 am, edited 1 time in total.
Top
VoidMage
Watchman
Watchman
User avatar
Posts: 6196
Joined: Sat Oct 14, 2006 8:43 am

  • Quote

Post by VoidMage » Thu Jul 11, 2013 9:50 am

Are you sure this is the first error ?
Top
selig
Guru
Guru
User avatar
Posts: 425
Joined: Sun Jul 31, 2005 4:58 pm
Location: Prague, Czech Republic

  • Quote

Post by selig » Fri Jul 12, 2013 8:11 am

Yes, there were no errors in the build process - until this one during install phase.

Code: Select all

livecd ~ # touch test
livecd ~ # chmod 4711 test
chmod: changing permissions of 'test': Permission denied
Top
selig
Guru
Guru
User avatar
Posts: 425
Joined: Sun Jul 31, 2005 4:58 pm
Location: Prague, Czech Republic

  • Quote

Post by selig » Sun Jul 14, 2013 8:48 am

Finally figured it out, it seems that the install cd booted with a hardened kernel which had chroot chmod restriction enabled. Disabled it in /proc/sys/kernel/grsecurity/chroot_deny_chmod and now it's working.
Top
Post Reply

4 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic