smstools init script uses incorrect group setting
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
smstools (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: smstools
smstools 3.1.3-2 on Ubuntu 9.04.
When smstools is first time started, init script creates an override for /var/run/smstools:
dpkg-statoverride --update --add smsd smsd 2755 $rundir
Later when this entry exists, GROUP is taken from dpkg-statoverride and smsd is used as a group. When smsd gets a group setting, this setting overrides /etc/group. Therefore, while serial port is owned by root:dialout, it's not accessible for smsd. ( This behaviour may be changed in some next version of smstools, but currently group setting defines one and only group to use. If no group is defined, /etc/group is used as usual. )
I think that init script could use the following form to create an override:
dpkg-statoverride --update --add $USER $GROUP 2755 $rundir
However, incorrect entry should be removed first from dpkg-statoverride's database.
This bug is fixed in 3.1.6-1.