[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problem with special permissions of config file



On Wed, Jul 04, 2001 at 02:38:17PM +1000, Sam Johnston wrote:
> On Thu, 31 May 2001 05:10, Ben Collins wrote:
> > On Wed, May 30, 2001 at 08:14:52PM +0200, Stefan Hornburg (Racke) wrote:
> > > My package courier-authmysql has a configuration file where the
> > > password for the MySQL database can be stored. So I set this
> > > file to 600 in postinst. But dpkg put the backup file .dpkg-old
> > > in the same directory with 622 which seems a rather bad idea
> > > to me. Is there anything I can do about it ?
> > >
> > > It is a potato backport where this happened, I didn't try it
> > > out on sid.
> >
> > Set the perms in the package, so the file gets installed with the
> > correct perms. Don't set perms in postinst like this.
> 
> And how do you do that? I was having a hunt around last night (I have a 
> package with similar requirements) but didn't find anything useful.

It's quite easy. in debian/rules you either install it with "install -m
<mode>", or you set the perms after running "make install".

Ben

-- 
 -----------=======-=-======-=========-----------=====------------=-=------
/  Ben Collins  --  ...on that fantastic voyage...  --  Debian GNU/Linux   \
`  bcollins@debian.org  --  bcollins@openldap.org  --  bcollins@linux.com  '
 `---=========------=======-------------=-=-----=-===-======-------=--=---'



Reply to: