informix-isv team mailing list archive
-
informix-isv team
-
Mailing list archive
-
Message #00002
Re: informix-oat ownership and permissions
Hi Brian,
thanks for the hint to use dpkg-statoverride.
I plan to use this command in postinst script to override the ownership of all
files in /var/www/openadmin:
find /var/www/openadmin -type d | xargs -n 1 dpkg-statoverride --update --add
www-data www-data 755
find /var/www/openadmin -type f | xargs -n 1 dpkg-statoverride --update --add
www-data www-data 644
and to reset the override in prerm script:
find /var/www/openadmin | xargs dpkg-statoverride --list | awk '{print $4}' |
xargs -n 1 dpkg-statoverride --remove
Andreas
On Monday 20 October 2008 20:15:42 Brian Thomason wrote:
> Hi Andreas,
>
> Package management needs to know about the file ownership and permissions,
> so a simple chown would violate policy.
>
> Debian provides a mechanism for this:
>
> dpkg-statoverride --update --add brian brian 644
> /opt/adobe/acroread/Adobe/Reader8/Resource/Support/AdobeReader.desktop
>
> If all the files in the folder share the ame permissions, you can just do a
> find /var/www/openadmin and pipe it to dpkg-statoverride. If they need to
> have different permissions, you should provide an override file in the
> package.
>
> Let me know if you need any assistance.
>
> -Brian
>
> On Mon, Oct 20, 2008 at 9:25 AM, Andreas Breitfeld
<abreitfe@xxxxxxxxxx>wrote:
> > Hi Brian,
> >
> > thanks for reply.
> >
> > dh_fixperms is commented out in debian/rules file of this package. So I
> > assume
> > its called implicitly somewhere in the launchpad build process. The
> > ownership
> > and permissions in the sources (informix-oat_2.22-2.tar.gz) looks OK.
> >
> > If this problem is difficult to resolve I think following command in the
> > postinst script would fix the problem for us:
> > chown -R www-data:www-data /var/www/openadmin
> >
> > Would this workaround be acceptable from your point of view?
> >
> > Thanks,
> > Andreas
> >
> > On Friday 17 October 2008 20:18:27 Brian Thomason wrote:
> > > Hi Andreas,
> > >
> > > I believe dh_fixperms does this. You can use dh_fixperms -X to exclude
> > > files. (There's nothing launcpad specific doing it - just the build
> > > process.
> > >
> > > If you continue to have trouble let me know and I'll figure it out.
> > >
> > > -Brian
> > >
> > > On Fri, Oct 17, 2008 at 11:04 AM, Andreas Breitfeld
> >
> > <abreitfe@xxxxxxxxxx>wrote:
> > > > Hi,
> > > >
> > > > today I tested install of the updated informix-oat package version
> >
> > 2.22-2
> >
> > > > from
> > > > the launchpad repository.
> > > >
> > > > Unfortunately the permission problem still exists. In the source file
> > > > informix-oat_2.22-2.tar.gz I see ownership of all files is
> > > > www-data:www-data.
> > > > But the files installed by the launchpad built package have ownership
> > > > root:root. In addition the permissions of files and directories are
> > > > changed to -rw-r--r-- and drwxr-xr-x . The package I built from the
> >
> > same
> >
> > > > sources do not have these problems. Ownership and permissions of
> > > > files are preserved.
> > > >
> > > > Brian,
> > > >
> > > > it looks like there is some mechanism in the launchpad package built
> > > > process
> > > > which reset ownership and permissions if files. If this is true how
> > > > the ownership and permissions can be preserved?
> > > >
> > > > Thanks,
> > > > Andreas
> > > > --
> > > > Andreas Breitfeld; Informix Development Munich
> > > > IBM Deutschland Research & Development GmbH; Vorsitzender des
> > > > Aufsichtsrats:
> > > > Martin Jetter; Geschaeftsfuehrung: Erich Baier; Sitz der
> > > > Gesellschaft: Boeblingen; Registergericht: Amtsgericht Stuttgart, HRB
> > > > 243294
> > > >
> > > > _______________________________________________
> > > > Mailing list:
> > > > https://launchpad.net/~informix-isv<https://launchpad.net/%7Einformix
> > > >-isv>
> >
> > <https://launchpad.net/%7Einformix-isv
> >
> > > >> Post to : informix-isv@xxxxxxxxxxxxxxxxxxx
> > > >
> > > > Unsubscribe :
> > > > https://launchpad.net/~informix-isv<https://launchpad.net/%7Einformix
> > > >-isv>
> >
> > <https://launchpad.net/%7Einformix-isv
> >
> > > >> More help : https://help.launchpad.net/ListHelp
> >
> > --
> > Andreas Breitfeld; Informix Development Munich
> > IBM Deutschland Research & Development GmbH; Vorsitzender des
> > Aufsichtsrats:
> > Martin Jetter; Geschaeftsfuehrung: Erich Baier; Sitz der Gesellschaft:
> > Boeblingen; Registergericht: Amtsgericht Stuttgart, HRB 243294
--
Andreas Breitfeld; Informix Development Munich
IBM Deutschland Research & Development GmbH; Vorsitzender des Aufsichtsrats:
Martin Jetter; Geschaeftsfuehrung: Erich Baier; Sitz der Gesellschaft:
Boeblingen; Registergericht: Amtsgericht Stuttgart, HRB 243294
References