Bug#292174: debarchiver: Strange permissions on incoming/*/, useless error message.
On 2005-01-27 Ola Lundqvist [EMAIL PROTECTED] wrote: [...] [EMAIL PROTECTED]:~$ dpkg --contents debarchiver_0.1.5_all.deb | grep /var/lib/debarchiver/incomin [..] Take a look at the postinst file. Yes, sorry for wasting your time by looking at the wrong place. However I am curious: Isn't this this solution ((shipping directories in the deb and chowning them afterwards) subotimal? I think on every upgrade dpkg will change the permissions back to root:root and 755 and postinst will have to reset them? cu andreas -- See, I told you they'd listen to Reason, [SPOILER] Svfurlr fnlf, fuhggvat qbja gur juveyvat tha. Neal Stephenson in Snow Crash http://downhill.aus.cc/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#292174: debarchiver: Strange permissions on incoming/*/, useless error message.
reopen 292174 severity 292174 wishlist thanks Hello On Thu, Jan 27, 2005 at 10:00:09AM +0100, Andreas Metzler wrote: On 2005-01-27 Ola Lundqvist [EMAIL PROTECTED] wrote: [...] [EMAIL PROTECTED]:~$ dpkg --contents debarchiver_0.1.5_all.deb | grep /var/lib/debarchiver/incomin [..] Take a look at the postinst file. Yes, sorry for wasting your time by looking at the wrong place. However I am curious: Isn't this this solution ((shipping directories in the deb and chowning them afterwards) subotimal? I think on every upgrade dpkg will change the permissions back to root:root and 755 and postinst will have to reset them? It is suboptimal, yes. I thought about it after I have uploaded the fixed version. On the other hand I do not think permissions are reset when unpacking the new files. I think this is only set at first unpack. I'm not sure though. I'm reopening and making it a wishlist bug to skip this part in postinst (for permissions, not for user owner) as it could be handled in a better way. Regards, // Ola cu andreas -- See, I told you they'd listen to Reason, [SPOILER] Svfurlr fnlf, fuhggvat qbja gur juveyvat tha. Neal Stephenson in Snow Crash http://downhill.aus.cc/ -- - Ola Lundqvist --- / [EMAIL PROTECTED] Annebergsslingan 37 \ | [EMAIL PROTECTED] 654 65 KARLSTAD | | +46 (0)54-10 14 30 +46 (0)70-332 1551 | | http://www.opal.dhs.org UIN/icq: 4912500 | \ gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9 / --- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#292174: debarchiver: Strange permissions on incoming/*/, useless error message.
Hello On Tue, Jan 25, 2005 at 04:21:33PM +0100, Andreas Metzler wrote: Package: debarchiver Version: 0.1.4 Severity: important On a fresh installation: ls -l /var/lib/debarchiver/incoming/ total 20 drwxr-sr-x 2 debarchiver debarchiver 4096 2005-01-25 16:08 REJECT drwxr-xr-x 2 rootdebarchiver 4096 2005-01-10 21:59 stable drwxr-xr-x 2 rootdebarchiver 4096 2005-01-10 21:59 testing drwxr-xr-x 2 rootdebarchiver 4096 2005-01-10 21:59 unstable If I now (as root) take a file and move it to one of the subdirectories, I'll get this strange error message: | Error: Removing sarge/pilot_4.61-1_i386.deb after it has been installed. | | Warning: Move sarge/pilot_4.61-1_i386.deb to REJECT dir. Which seems to be debarchiver's way of saying The default permissions are less than optimal, because of lacking write permissions of group debarchiver to incoming/* debarchiver is never able to clean up. cu andreas I do not really understand what you do here. I can see that only root have access to those directories. ... I'll check on a fresh install here. labradorit:/var/lib/debarchiver# ls -la incoming/ total 0 drwxrwsr-x 5 root debarchiver 48 Jan 26 10:29 . drwxr-xr-x 4 root root33 Jan 26 10:29 .. drwxr-xr-x 2 root debarchiver 6 Jan 10 21:59 stable drwxr-xr-x 2 root debarchiver 6 Jan 10 21:59 testing drwxr-xr-x 2 root debarchiver 6 Jan 10 21:59 unstable labradorit:/var/lib/debarchiver# Hmm yes. Less than good. It is now fixed. Unfortunatly it will not fix it for you as this fix only applies to a fresh install. But it will be fixed for everyone else. If you remove the package and the /var/lib/debarchiver/incoming directory and make a new install it will be fixed for you too. If you do not want to do that then you have to execute: chmod g+ws -Rf /var/lib/debarchiver/incoming Regards, // Ola -- System Information: Debian Release: 3.1 APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.8-2-686-smp Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1) (ignored: LC_ALL set t o en_US) Versions of packages debarchiver depends on: ii adduser 3.59 Add and remove users and groups ii apt-utils 0.5.28.1 APT utility programs ii dpkg-dev 1.10.26Package building tools for Debian ii opalmod 0.1.13 A set of Perl modules for various -- no debconf information -- - Ola Lundqvist --- / [EMAIL PROTECTED] Annebergsslingan 37 \ | [EMAIL PROTECTED] 654 65 KARLSTAD | | +46 (0)54-10 14 30 +46 (0)70-332 1551 | | http://www.opal.dhs.org UIN/icq: 4912500 | \ gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9 / --- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#292174: debarchiver: Strange permissions on incoming/*/, useless error message.
reopen 292174 thanks On 2005-01-26 Ola Lundqvist [EMAIL PROTECTED] wrote: On Tue, Jan 25, 2005 at 04:21:33PM +0100, Andreas Metzler wrote: Package: debarchiver Version: 0.1.4 Severity: important On a fresh installation: ls -l /var/lib/debarchiver/incoming/ total 20 drwxr-sr-x 2 debarchiver debarchiver 4096 2005-01-25 16:08 REJECT drwxr-xr-x 2 rootdebarchiver 4096 2005-01-10 21:59 stable [...] If I now (as root) take a file and move it to one of the subdirectories, I'll get this strange error message: | Error: Removing sarge/pilot_4.61-1_i386.deb after it has been installed. | | Warning: Move sarge/pilot_4.61-1_i386.deb to REJECT dir. Which seems to be debarchiver's way of saying The default permissions are less than optimal, because of lacking write permissions of group debarchiver to incoming/* debarchiver is never able to clean up. I do not really understand what you do here. I can see that only root have access to those directories. ... I'll check on a fresh install here. labradorit:/var/lib/debarchiver# ls -la incoming/ total 0 drwxrwsr-x 5 root debarchiver 48 Jan 26 10:29 . drwxr-xr-x 4 root root33 Jan 26 10:29 .. drwxr-xr-x 2 root debarchiver 6 Jan 10 21:59 stable [...] It is now fixed. [...] It is not. [EMAIL PROTECTED]:~$ dpkg --contents debarchiver_0.1.5_all.deb | grep /var/lib/debarchiver/incomin drwxr-xr-x root/root 0 2005-01-26 02:37:54 ./var/lib/debarchiver/incoming/ drwxr-xr-x root/root 0 2005-01-26 02:37:54 ./var/lib/debarchiver/incoming/stable/ drwxr-xr-x root/root 0 2005-01-26 02:37:54 ./var/lib/debarchiver/incoming/testing/ drwxr-xr-x root/root 0 2005-01-26 02:37:54 ./var/lib/debarchiver/incoming/unstable/ Whether the directory is 755 root:root or 755 root:debarchiver does not change anything, everybody can still rx to it but the cronjob running as debarchiver:debarchiver still has no permissions to remove files. cu andreas -- See, I told you they'd listen to Reason, [SPOILER] Svfurlr fnlf, fuhggvat qbja gur juveyvat tha. Neal Stephenson in Snow Crash http://downhill.aus.cc/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#292174: debarchiver: Strange permissions on incoming/*/, useless error message.
Package: debarchiver Version: 0.1.4 Severity: important On a fresh installation: ls -l /var/lib/debarchiver/incoming/ total 20 drwxr-sr-x 2 debarchiver debarchiver 4096 2005-01-25 16:08 REJECT drwxr-xr-x 2 rootdebarchiver 4096 2005-01-10 21:59 stable drwxr-xr-x 2 rootdebarchiver 4096 2005-01-10 21:59 testing drwxr-xr-x 2 rootdebarchiver 4096 2005-01-10 21:59 unstable If I now (as root) take a file and move it to one of the subdirectories, I'll get this strange error message: | Error: Removing sarge/pilot_4.61-1_i386.deb after it has been installed. | | Warning: Move sarge/pilot_4.61-1_i386.deb to REJECT dir. Which seems to be debarchiver's way of saying The default permissions are less than optimal, because of lacking write permissions of group debarchiver to incoming/* debarchiver is never able to clean up. cu andreas -- System Information: Debian Release: 3.1 APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.8-2-686-smp Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1) (ignored: LC_ALL set t o en_US) Versions of packages debarchiver depends on: ii adduser 3.59 Add and remove users and groups ii apt-utils 0.5.28.1 APT utility programs ii dpkg-dev 1.10.26Package building tools for Debian ii opalmod 0.1.13 A set of Perl modules for various -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]