Re: [gentoo-user] Chmod Failed
Hello, i has found the problem. That was the kernel with gresecurity patch. I has read that can give trouble and now i change kernel and dbus is installed. Thanks for help & Nice Day Silvio
Re: [gentoo-user] Chmod Failed
On Sun, 29 Dec 2013 19:23:41 +0800 Oli wrote: > Had a similar issue not too long ago. It was down to a block error > on the hard drive. After a full check and repair, it worked well. On host system could install dbus without problem. siefke ~ $ su -c "emerge -pqv =sys-apps/dbus-1.6.12::gentoo" Passwort: [ebuild R ] sys-apps/dbus-1.6.12 USE="-X -debug -doc (-selinux) -static-libs -systemd {-test}" But in chroot want not install. I has read something about grub must installed i have but nothing changed. ks3374456 portage # emerge --info =sys-apps/dbus-1.6.12::gentoo Portage 2.2.7 (default/linux/x86/13.0, gcc-4.7.3, glibc-2.16.0, 3.10.9--grs-ipv6-64 i686) = System Settings = System uname: Linux-3.10.9--grs-ipv6-64-i686-Intel-R-_Atom-TM-_CPU_N2800_@_1.86GHz-with-gentoo-2.2 KiB Mem: 2021976 total,401612 free KiB Swap:2096124 total, 2093284 free Timestamp of tree: Tue, 07 Jan 2014 21:30:01 + ld GNU ld (GNU Binutils) 2.23.1 ccache version 3.1.9 [enabled] app-shells/bash: 4.2_p45 dev-lang/python: 2.7.5-r3, 3.3.2-r2 dev-util/ccache: 3.1.9 dev-util/pkgconfig: 0.28 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.12.4 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.69 sys-devel/automake: 1.13.4 sys-devel/binutils: 2.23.1 sys-devel/gcc:4.7.3-r1 sys-devel/gcc-config: 1.7.3 sys-devel/libtool:2.4.2 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.9 (virtual/os-headers) sys-libs/glibc: 2.16.0 Repositories: gentoo ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="* -@EULA" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/easy-rsa" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -march=i686 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -march=i686 -pipe" FEATURES="assume-digests binpkg-logs buildpkg ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -march=i686 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org"; LANG="de_DE.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" USE="X acl alsa berkdb bindist bzip2 cdr cli cracklib crypt cxx dri dvd fortran gdbm gtk iconv ipv6 mmx modules mudflap ncurses nls nptl openmp pam pcre python readline session sse sse2 sse3 ssl ssse3 tcpd truetype unicode x86 zlib" ABI_X86="32" ALSA_CARDS="hda_intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmin txt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev void synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en ar fr" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python3_3 python2_7" RUBY_TARGETS="ruby20 ruby19" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON When try install bin package come same
Re: [gentoo-user] Chmod Failed
Silvio Siefke wrote: >Hello, > > >self when i use package come the mistake. > Emerging binary (1 of 1) sys-apps/dbus-1.6.12 >* dbus-1.6.12.tbz2 MD5 SHA1 size ;-) ... >[ ok ] Extracting info >* Checking for suitable kernel configuration options... >[ ok ] Extracting sys-apps/dbus-1.6.12 >tar: ./usr/libexec/dbus-daemon-launch-helper: Cannot change mode to >rwsr-x---: Permission denied >tar: Exiting with failure status due to previous errors >tar failed with status 2 >!!! Error Extracting '/usr/portage/packages/sys-apps/dbus-1.6.12.tbz2' > Failed to emerge sys-apps/dbus-1.6.12, Log file: > '/var/tmp/portage/sys-apps/dbus-1.6.12/temp/build.log' > >I not understand why. Is it the kernel? But i compile same kernel i >have on >my Netbook installed. Same Option and same patches. On Laptop goes in >chroot want not goes? > >I understand it not. > > >Silvio Had a similar issue not too long ago. It was down to a block error on the hard drive. After a full check and repair, it worked well. Regards Oliver
Re: [gentoo-user] Chmod Failed
Hello, self when i use package come the mistake. >>> Emerging binary (1 of 1) sys-apps/dbus-1.6.12 * dbus-1.6.12.tbz2 MD5 SHA1 size ;-) ...[ ok ] >>> Extracting info * Checking for suitable kernel configuration options... [ ok ] >>> Extracting sys-apps/dbus-1.6.12 tar: ./usr/libexec/dbus-daemon-launch-helper: Cannot change mode to rwsr-x---: Permission denied tar: Exiting with failure status due to previous errors tar failed with status 2 !!! Error Extracting '/usr/portage/packages/sys-apps/dbus-1.6.12.tbz2' >>> Failed to emerge sys-apps/dbus-1.6.12, Log file: >>> '/var/tmp/portage/sys-apps/dbus-1.6.12/temp/build.log' I not understand why. Is it the kernel? But i compile same kernel i have on my Netbook installed. Same Option and same patches. On Laptop goes in chroot want not goes? I understand it not. Silvio
Re: [gentoo-user] Chmod Failed
Hello, On Thu, 26 Dec 2013 18:31:45 +0100 Alexander Puchmayr wrote: > Which users are involved? > I assume you are emerging as root, and you have been doing you manual > modification as root as well. Yes with root. But i understand this mistake never has. Thats why im woundering. > Just a guess: as part of the emerge-command, chmod may be called as > user 'portage', who does not have the right to change modifications > of this file. But how can change? On all my PCs run gentoo but never come this error. On my Desktop siefke ~ $ cat /etc/group | grep portage portage:x:250:portage,siefke On the Chroot Build siefke ~ $ cat /mnt/gentoo/i686/etc/group | grep portage portage:x:250:portage > Just another guess: have a look at your /etc/portage/make.conf, and > check the FEATURES variable. If it contains 'userpriv', remove it and > try again. siefke ~ $ cat /mnt/gentoo/i686/etc/portage/make.conf | grep FEATURES FEATURES="buildpkg sandbox collision-protect parallel-fetch -preserve-libs" That i have read in a Tutorial for a Gentoo Build Server. I has think it was the mount from the /var/tmp/portage from the Hostsystem, but i has unmount, i delete the directory but it will not change. Thanks for help & Nice Day Silvio -- Silvio Siefke
Re: [gentoo-user] Chmod Failed
On Mittwoch, 25. Dezember 2013, 12:37:27 Silvio Siefke wrote: > Hello, > > On Wed, 25 Dec 2013 11:49:53 +0400 > > the wrote: > > ls -al would be helpful > > ks3374456 tmp # ls -la > insgesamt 12 > drwxrwxrwt 3 rootroot4096 25. Dez 05:49 . > drwxr-xr-x 9 rootroot4096 10. Dez 07:47 .. > -rw-r--r-- 1 rootroot 0 10. Dez 07:47 .keep > drwsr-x--- 3 portage portage 4096 25. Dez 05:51 portage > > /mnt/gentoo/i686/var/tmp/portage/sys-apps/dbus-1.6.12/image > ks3374456 image # ls -la > insgesamt 20 > drwxr-xr-x 5 rootroot4096 25. Dez 05:51 . > drwxrwxr-x 8 portage portage 4096 25. Dez 05:51 .. > drwxr-xr-x 5 rootroot4096 25. Dez 05:51 etc > drwxr-xr-x 7 rootroot4096 25. Dez 05:51 usr > drwxr-xr-x 4 rootroot4096 25. Dez 05:51 var > > ks3374456 dbus-1.6.12 # ls -la image/usr/libexec/ > insgesamt 396 > drwxr-xr-x 2 root root 4096 25. Dez 05:51 . > drwxr-xr-x 7 root root 4096 25. Dez 05:51 .. > -rwsr-x--- 1 root messagebus 396834 25. Dez 05:51 dbus-daemon-launch-helper > > ks3374456 dbus-1.6.12 # chmod 4750 > image/usr/libexec/dbus-daemon-launch-helper chmod: Beim Setzen der > Zugriffsrechte für „image/usr/libexec/dbus-daemon-launch-helper“: Keine > Berechtigung > > Which users are involved? I assume you are emerging as root, and you have been doing you manual modification as root as well. Just a guess: as part of the emerge-command, chmod may be called as user 'portage', who does not have the right to change modifications of this file. Just another guess: have a look at your /etc/portage/make.conf, and check the FEATURES variable. If it contains 'userpriv', remove it and try again. Best regards Alex
Re: [gentoo-user] Chmod Failed
On Mittwoch, 25. Dezember 2013, 12:37:27 Silvio Siefke wrote: > Hello, > > On Wed, 25 Dec 2013 11:49:53 +0400 > > the wrote: > > ls -al would be helpful > > ks3374456 tmp # ls -la > insgesamt 12 > drwxrwxrwt 3 rootroot4096 25. Dez 05:49 . > drwxr-xr-x 9 rootroot4096 10. Dez 07:47 .. > -rw-r--r-- 1 rootroot 0 10. Dez 07:47 .keep > drwsr-x--- 3 portage portage 4096 25. Dez 05:51 portage > > /mnt/gentoo/i686/var/tmp/portage/sys-apps/dbus-1.6.12/image > ks3374456 image # ls -la > insgesamt 20 > drwxr-xr-x 5 rootroot4096 25. Dez 05:51 . > drwxrwxr-x 8 portage portage 4096 25. Dez 05:51 .. > drwxr-xr-x 5 rootroot4096 25. Dez 05:51 etc > drwxr-xr-x 7 rootroot4096 25. Dez 05:51 usr > drwxr-xr-x 4 rootroot4096 25. Dez 05:51 var > > ks3374456 dbus-1.6.12 # ls -la image/usr/libexec/ > insgesamt 396 > drwxr-xr-x 2 root root 4096 25. Dez 05:51 . > drwxr-xr-x 7 root root 4096 25. Dez 05:51 .. > -rwsr-x--- 1 root messagebus 396834 25. Dez 05:51 dbus-daemon-launch-helper > > ks3374456 dbus-1.6.12 # chmod 4750 > image/usr/libexec/dbus-daemon-launch-helper chmod: Beim Setzen der > Zugriffsrechte für „image/usr/libexec/dbus-daemon-launch-helper“: Keine > Berechtigung > > Which users are involved? I assume you are emerging as root, and you have been doing you manual modification as root as well. Just a guess: as part of the emerge-command, chmod may be called as user 'portage', who does not have the right to change modifications of this file. Just another guess: have a look at your /etc/portage/make.conf, and check the FEATURES variable. If it contains 'userpriv', remove it and try again. Best regards Alex
Re: [gentoo-user] Chmod Failed
Hello, On Wed, 25 Dec 2013 11:49:53 +0400 the wrote: > ls -al would be helpful ks3374456 tmp # ls -la insgesamt 12 drwxrwxrwt 3 rootroot4096 25. Dez 05:49 . drwxr-xr-x 9 rootroot4096 10. Dez 07:47 .. -rw-r--r-- 1 rootroot 0 10. Dez 07:47 .keep drwsr-x--- 3 portage portage 4096 25. Dez 05:51 portage /mnt/gentoo/i686/var/tmp/portage/sys-apps/dbus-1.6.12/image ks3374456 image # ls -la insgesamt 20 drwxr-xr-x 5 rootroot4096 25. Dez 05:51 . drwxrwxr-x 8 portage portage 4096 25. Dez 05:51 .. drwxr-xr-x 5 rootroot4096 25. Dez 05:51 etc drwxr-xr-x 7 rootroot4096 25. Dez 05:51 usr drwxr-xr-x 4 rootroot4096 25. Dez 05:51 var ks3374456 dbus-1.6.12 # ls -la image/usr/libexec/ insgesamt 396 drwxr-xr-x 2 root root 4096 25. Dez 05:51 . drwxr-xr-x 7 root root 4096 25. Dez 05:51 .. -rwsr-x--- 1 root messagebus 396834 25. Dez 05:51 dbus-daemon-launch-helper ks3374456 dbus-1.6.12 # chmod 4750 image/usr/libexec/dbus-daemon-launch-helper chmod: Beim Setzen der Zugriffsrechte für „image/usr/libexec/dbus-daemon-launch-helper“: Keine Berechtigung I hope thats what you need. That i now have 4650 is because i has set chmod without chroot. In chroot come again "Permission Denied" Thank you for help & Nice Day Silvio -- Silvio Siefke
Re: [gentoo-user] Chmod Failed
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/25/13 08:58, Silvio Siefke wrote: > Hello, > > > i try to install dbus on a chroot gentoo which should be a build > server. The Compile ends with: > > make[3]: Entering directory > `/var/tmp/portage/sys-apps/dbus-1.6.12/work/dbus-1.6.12-build/bus' > if test `id -u` -eq 0; then \ chown root:messagebus > /var/tmp/portage/sys-apps/dbus-1.6.12/image//usr/libexec/dbus-daemon-launch-helper; > > \ chmod 4750 > /var/tmp/portage/sys-apps/dbus-1.6.12/image//usr/libexec/dbus-daemon-launch-helper; > > \ else \ echo "Not installing > /var/tmp/portage/sys-apps/dbus-1.6.12/image//usr/libexec/dbus-daemon-launch-helper > > binary setuid!"; \ echo "You'll need to manually set permissions to > root:messagebus and permissions 4750"; \ fi /bin/sh > /var/tmp/portage/sys-apps/dbus-1.6.12/work/dbus-1.6.12/install-sh > -d > /var/tmp/portage/sys-apps/dbus-1.6.12/image//usr/share/dbus-1/services > > > chmod: changing permissions of ‘/var/tmp/portage/sys-apps/dbus-1.6.12/image//usr/libexec/dbus-daemon-launch-helper’: Permission denied > > But when i set manuell the Persmissions i become the same error. > What can i do that i can install dbus? > > Thanks for help & Nice Day Silvio > ls -al would be helpful -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.22 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJSuo4eAAoJEK64IL1uI2haV+gH/1dcPsUKVLUGGWVg/GqfpqX6 KMAWljdrcySJgvXQyfnPKEQDVH0ffto6HqH+ZqBNaMrHJ8KJmdWzDkacH30TTmNG EzqvfpTLhINmca1JWI9K0ymUippoL0HuMrWAH9aDX3tnqBXLkWNEYhv2ejpA3tig wyFUgFVbBGZC2wmmzSqlZn3A1UjKnNvhFd0qTogGnqONjdNpqTO4OIV/EgUNOgIM yhw2u4BGH9vsZdgyxqiNshYewVLKEY+0ANGl8RzsOyoUJ1l5zS8WnEvBkKjmWyNH 1UyfKIpj+s8ds7q5O/3jCuCMxB7XeeQeal6smeCQ+4FN91zorTgKdkktry1zf6o= =lNIH -END PGP SIGNATURE-
[gentoo-user] Chmod Failed
Hello, i try to install dbus on a chroot gentoo which should be a build server. The Compile ends with: make[3]: Entering directory `/var/tmp/portage/sys-apps/dbus-1.6.12/work/dbus-1.6.12-build/bus' if test `id -u` -eq 0; then \ chown root:messagebus /var/tmp/portage/sys-apps/dbus-1.6.12/image//usr/libexec/dbus-daemon-launch-helper; \ chmod 4750 /var/tmp/portage/sys-apps/dbus-1.6.12/image//usr/libexec/dbus-daemon-launch-helper; \ else \ echo "Not installing /var/tmp/portage/sys-apps/dbus-1.6.12/image//usr/libexec/dbus-daemon-launch-helper binary setuid!"; \ echo "You'll need to manually set permissions to root:messagebus and permissions 4750"; \ fi /bin/sh /var/tmp/portage/sys-apps/dbus-1.6.12/work/dbus-1.6.12/install-sh -d /var/tmp/portage/sys-apps/dbus-1.6.12/image//usr/share/dbus-1/services chmod: changing permissions of ‘/var/tmp/portage/sys-apps/dbus-1.6.12/image//usr/libexec/dbus-daemon-launch-helper’: Permission denied But when i set manuell the Persmissions i become the same error. What can i do that i can install dbus? Thanks for help & Nice Day Silvio