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

Re: Problem with special permissions of config file

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.

 - samj

Reply to: