Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 139844

Summary: mythtv ebuild removes mythtv user from groups
Product: Gentoo Linux Reporter: Karl Newman <SiliconFiend>
Component: Current packagesAssignee: 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: ---

Description Karl Newman 2006-07-09 21:55:55 UTC
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
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-07-10 00:49:11 UTC

*** This bug has been marked as a duplicate of 125973 ***