Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 12537 - baselayout-1.8.5.5 update breaks sendmail
Summary: baselayout-1.8.5.5 update breaks sendmail
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High critical (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
: 13118 (view as bug list)
Depends on: 8952
Blocks:
  Show dependency tree
 
Reported: 2002-12-21 17:52 UTC by Alessandro Pisani
Modified: 2004-10-17 11:51 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Pisani 2002-12-21 17:52:20 UTC
upgrading to baselayout-1.8.5.5 will update /etc/groups changing group smmsp
from id 407 to id 209; it should also change /etc/passwd to sync the smmsp user
to belong to the correct group id, otherwise sendmail won't send mail anymore

bye,
Alessandro
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-22 02:45:57 UTC
Why didnt you guys tell me you already had a gid and uid for the damn thing ?
Comment 2 Alessandro Pisani 2003-01-05 06:39:29 UTC
Adding this to pkg_postinst() could fix the problem:

NG=`grep smmsp /etc/.cfg????_group | awk -F : '{ print $3 }'`
OG=`grep smmsp /etc/passwd | awk -F : '{ print $4 }'`
sed -e "\csmmspc s/$OG/$NG/"

since it would replace the old smmsp group id in /etc/passwd with the new one
taken from the just updated /etc/group file

HTH
Bye,
Alessandro
Comment 3 Martin Holzer (RETIRED) gentoo-dev 2003-01-15 14:17:29 UTC
*** Bug 13118 has been marked as a duplicate of this bug. ***
Comment 4 Alessandro Pisani 2003-01-20 14:34:56 UTC
Could this be closed since #8952 had been solved?