On Fri, Mar 09, 2007 at 05:26:02PM +0100, Michael Schwendt wrote:
And with useradd -r, how do you get the same uid/gid for a package on
all
installations, when you want that?
You create the user ahead of time. As long as the %pre script looks
like this, there won't be a problem:
id foo &>/dev/null || \
/usr/sbin/useradd -r -s /sbin/nologin -c FOO -d /usr/share/foo foo
You can't think of any environment, where predictable uids/gids
make
sense?
I certainly can't think of such an environment where it doesn't make
*more* sense to either pre-create the user accounts with fixed
uids/gids or just use LDAP/NIS/whatever.
Steve
--
Steven Pritchard - K&S Pritchard Enterprises, Inc.
Email: steve(a)kspei.com
http://www.kspei.com/
Phone: (618)398-3000 Mobile: (618)567-7320