On 2020-06-01 10:58 +0100, John Burrell via blfs-dev wrote: > I use MSB's package user package management system and up til now it > has worked fine but I've come unstuck installing sudo-1.9.0. > > I get: > > make[1]: Entering directory '/usr/src/security/sudo/sudo-1.9.0/lib/util' > /bin/sh ../../scripts/mkinstalldirs /usr/lib/sudo > case "" in \ > *-no-install*) ;; \ > *) if [ X"yes" = X"yes" ]; then \ > INSTALL_BACKUP='' /bin/sh ../../libtool --tag=disable-static --quiet > --mode=install /bin/sh ../../install-sh -c -o 0 -g 0 libsudo_util.la > /usr/lib/sudo; \ > fi;; \ > esac > /sbin/chown: changing ownership of > '/usr/lib/sudo/libsudo_util.so.0.0.0': Operation not permitted > make[1]: *** [Makefile:284: install] Error 1 > > In the dir lib/util the relevant bit of the Makefile.in is: > > install: install-dirs > case "$(LT_LDFLAGS)" in \ > *-no-install*) ;; \ > *) if [ X"$(shlib_enable)" = X"yes" ]; then \ > INSTALL_BACKUP='$(INSTALL_BACKUP)' $(LIBTOOL) > $(LTFLAGS) --quiet --mode=install $(INSTALL) $(INSTALL_OWNER) > libsudo_util.la $(DESTDIR)$(libexecdir)/sudo; \ > fi;; \ > esac > > install-dirs: > $(SHELL) $(scriptdir)/mkinstalldirs $(DESTDIR)$(libexecdir)/sudo > > install-binaries: > > install-includes: > > install-doc: > > install-plugin: > > I assume the chown occurs as part of the install-binaries but I can't > find the code for install-binaries. Could someone give me a clue as to > where I might find this code?
I never use this package management approach but it does not make sense to install sudo with a non-root user owning it. sudo only works as a setuid-root executable. -- Xi Ruoyao <[email protected]> School of Aerospace Science and Technology, Xidian University -- http://lists.linuxfromscratch.org/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
