Opened 6 years ago

Closed 6 years ago

#906 closed defect (fixed)

Daemon cannot read config file if umask is set during .deb installation

Reported by: kmmhutubuq Owned by: killyourtv
Priority: minor Milestone: 0.9.5
Component: package/debian Version: 0.9.4
Keywords: Cc:
Parent Tickets:

Description

When running dpkg-reconfigure after installing the .deb package as described on http://www.i2p2.de/debian.html, the daemon fails with the error message:

Starting I2P Router: i2pFATAL | wrapper | Failed to load configuration.

This is because the configuration file /etc/i2p/wrapper.config was created with permissions -rw-rw----. Changing it with chmod a+r fixes the problem.

It probably happened, because I have set umask 007 in /etc/profile. That is a common setting to take advantage of user private groups. The installer should ignore this setting when creating the config file and make sure that the i2psvc user can read it.

System information:

uname -mo: i686 GNU/Linux
cat /etc/debian_version: 6.0.7
ls -1 /var/cache/apt/archives/i2p*:
/var/cache/apt/archives/i2p_0.9.5-1n1_all.deb
/var/cache/apt/archives/i2p-router_0.9.5-1n1_all.deb

Subtickets

Change History (3)

comment:1 Changed 6 years ago by kmmhutubuq

  • Summary changed from Daemon cannot read config file if umask is set during .deb installatio to Daemon cannot read config file if umask is set during .deb installation

comment:2 Changed 6 years ago by killyourtv

  • Status changed from new to accepted

I'll check in a fix soon. Thanks for reporting.

comment:3 Changed 6 years ago by killyourtv

  • Resolution set to fixed
  • Status changed from accepted to closed

Fixed in mtn.

Note: See TracTickets for help on using tickets.