mediad

Thomas Schmidt tschmidt at debian.org
Mon Apr 2 15:31:30 UTC 2007


Hi

* Tobias Grimm schrieb am 31.03.07, um 18:01 Uhr:
> I'm currently working on the vdr-plugin-mediad package. This plugin
> requires the user vdr to be in the group plugdev, in order to allow vdr
> to mount e.g. usb drives.
> 
> The question is, should the plugin package add "vdr" to the group
> "plugdev" in postinst? And should it remove "vdr" from this group in
> postrm? What if there ever comes another plugin that requires vdr in
> plugdev?
> 
> An alternative would be to use debconf in postinst/postrm asking the
> user, if vdr should be added to / removed from plugdev.
> 
> Or the package could simply install a note in README.Debian and leave it
> up to the admin to add vdr to plugdev manually if needed.

I think, the only practical way to do this, would be if the vdr-package
itself would add vdr to the group plugdev, but i guess that this problem
will occur again with other plugins in the future, so i had a new idea 
for a possible solution to this problem:

We could write a script which will be placed in the vdr-package which
can be used to "register" and "unregister" group requirements of
certain plugins. A plugin could then use this script in postinst to
"register" that vdr should be in a certain group. If the user vdr is
not allready a member of the requested group, it could be added very
easily.

The script should also be called in postrm again to "unregister" the 
group requirement. The script itself should then look which in which
groups the user vdr is a member and if there are unnecessary group 
memberships it could remove the user vdr from the corresponding group.

What do you think about this idea?


Regards,
Thomas

-- 
Thomas Schmidt, Debian VDR Team
http://pkg-vdr-dvb.alioth.debian.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-vdr-dvb-devel/attachments/20070402/963d1aff/attachment.pgp


More information about the pkg-vdr-dvb-devel mailing list