|
|
Choosing A Webhost: |
Re: packages which add user accounts: is fedora-usermgmt the way?: msg#00007linux.redhat.fedora.extras.packaging
On Tue, 2005-09-06 at 16:52 -0500, Steven Pritchard wrote: > On Tue, Sep 06, 2005 at 04:39:26PM -0500, Tom 'spot' Callaway wrote: > > Someone recently pointed out to me the existence of useradd -r and > > groupadd -r (they're Red Hat added functionality). When used, these > > commands create the first available UID and GID below UID_MAX and > > GID_MAX, as defined in /etc/login.defs. > > > > This seems to be doing roughly the same thing as fedora-usermgt. Does > > this seem like an acceptable way to create system user/groups in %post? > > My personal feeling (as a sysadmin and a packager) is that doing > something like this in %pre (not %post, if you want files owned by the > new user) is the Right Thing: > > %pre > if ! id foo > /dev/null 2>&1 ; then > /usr/sbin/useradd -r -s /sbin/nologin -c 'BAR' [...] foo > fi > > And then just *don't touch the account* on removal. If this is the > stated policy, then no sysadmin can be surprised by it. If unused > accounts bother them, they can do "userdel foo" manually. > > If for some reason useradd will not work, doing this in %pre should > make package installation fail, right? Then the sysadmin can go add > the user in LDAP/NIS/whatever and reinstall the package. > > IMHO trying to support anything more elaborate than this is going to > cause more problems than it solves... This all seems to make sense to me. Agree or disagree? ~spot -- Tom "spot" Callaway: Red Hat Senior Sales Engineer || GPG ID: 93054260 Fedora Extras Steering Committee Member (RPM Standards and Practices) Aurora Linux Project Leader: http://auroralinux.org Lemurs, llamas, and sparcs, oh my!
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: packages which add user accounts: is fedora-usermgmt the way?, Steven Pritchard |
|---|---|
| Next by Date: | Re: packages which add user accounts: is fedora-usermgmt the way?, Matthias Saou |
| Previous by Thread: | Re: packages which add user accounts: is fedora-usermgmt the way?, Steven Pritchard |
| Next by Thread: | Re: packages which add user accounts: is fedora-usermgmt the way?, Matthias Saou |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |