On Mon, Oct 30, 2006, Steffen Weinreich wrote: > I am a little bit puzzled. As far as I understood the change from End > August sudo should not be longer neccecary for the most tasks to > maintain a openpkg instance. In the Progress of upgrading a instance > from 2.5 to 2_STABLE I found the following happing: > > bash-3.00$ /opt/ic3s/bin/openpkg --debug rpm -Uvh --force > /opt/ic3s/RPM/PKG/sendmail-8.13.8-2.20061022.ix86-debian3.1-oi.rpm > > openpkg:DEBUG: current-user: usr=ic3s uid=1000 euid=1000 grp=ic3s > gid=1000 egid=1000 > openpkg:DEBUG: super-user: s_usr=root s_uid=0 s_gid=0 > openpkg:DEBUG: management-user: m_grp=ic3s m_uid=1000 m_gid=1000 > openpkg:DEBUG: parsing result: username="root" groupname="*" > openpkg:DEBUG: matching: username ok = no, groupname ok = yes > openpkg:DEBUG: parsing result: username="ic3s" groupname="*" > openpkg:DEBUG: matching: username ok = yes, groupname ok = yes > openpkg:DEBUG: current user is manager: yes > openpkg:DEBUG: current command requires super user privileges: yes > openpkg:DEBUG: drop effective privileges for current user > openpkg:DEBUG: execute "/opt/ic3s/lib/openpkg/openpkg" > > Preparing... ########################################### > [100%] > 1:sendmail ########################################### > [100%] > > error: unpacking of archive failed on file /opt/ic3s/etc/sendmail: cpio: > chmod failed - Operation not permitted > > bash-3.00$ > > - From what I understand the wrapper should not drop but increase the > priviledge level to root, but log and chmod error message did tell > something else..
You are correct in your understanding, Steve. But I'm sure you were catched by a subtle upgrade pitfall: when you are installing the bootstrap from 2-STABLE-20061018 the _FIRST TIME_, there is still no setuid-wrapper in place (as it comes with this version the first time). Hence you _HAVE_ to perform the upgrade step ("openpkg rpm -Uvh") for the bootstrap package as _ROOT_ or your <prefix>/bin/openpkg file will be not be able to be chown'ed to "root". I'm sure if you do a "openpkg rpm -V openpkg" it tells you that the owner/user ("U") on <prefix>/bin/openpkg is incorrect. I'm sure it is your management user as you performed the upgrade as the management user. Right? Ralf S. Engelschall [EMAIL PROTECTED] www.engelschall.com ______________________________________________________________________ The OpenPKG Project www.openpkg.org Developer Communication List openpkg-dev@openpkg.org