smstools init script uses incorrect group setting

Bug #490977 reported by Keijo Kasvi
6
This bug affects 1 person
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.

Revision history for this message
Keijo Kasvi (smstools3) wrote :

This bug is fixed in 3.1.6-1.

Changed in smstools (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.