| Summary: | mythtv ebuild removes mythtv user from groups | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Karl Newman <SiliconFiend> |
| Component: | Current packages | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | minor | ||
| Priority: | High | ||
| Version: | 2006.0 | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
Emerging mythtv over an existing install will remove the user 'mythtv' from any groups other than those specified in MYTHTV_GROUPS in the ebuild. This is mainly a problem with the 'cdrom' group because after an emerge the DVD drive becomes inaccessible to the 'mythtv' user. The fix for this is literally one character. Instead of using 'usermod -G ${MYTHTV_GROUPS} mythtv' in pkg_preinst() to add the groups, use 'usermod -a ${MYTHTV_GROUPS} mythtv'. The -a will add the user to the listed groups whereas the -G will make the user a member of the listed groups ONLY. If necessary I can attach a patched ebuild but I think that's overkill. This has occurred in every ebuild I've used since at least mythtv-0.18