> -----Original Message----- > From: rpm-list-bounces@xxxxxxxxxx > [mailto:rpm-list-bounces@xxxxxxxxxx]On > Behalf Of leam > Sent: Monday, September 27, 2004 2:53 PM > To: RPM Package Manager > Subject: Re: How to use temporary files? > > > > On Mon, Sep 27, 2004 at 02:08:39PM -0500, leam wrote: > > > > FYI: You should use useradd (groupadd) to portably create > accounts. > > > > useradd will fail if the account exists. You still have an > issue: > > > > if there's a chance the account was created by something else, > you > > > > need a way to know whether userdel (groupdel) it on package > > > > removal - same problem you have now with manually > adding entries. > > > useradd would have a problem with the passwords which I can avoid > by > > > doing the same grep thing on shadow.new. We don't tend to mass > remove > > > home directories though we do lock them if the user leaves. Thus > > > removal is not as much of an issue. > > > > Wait -- you're creating an account _with a set password_??? > > If you mean "set" as in "same password on different boxes", yup. Too > many boxes to remember that many different passwords. However, these > are not internet facing boxes. How about useradd foo echo mypass | passwd --stdin foo That would add foo unless he/she's already there, and then set foo's password to "mypass" - would that do what you are looking for? Worst case you might reset someone's password but that is trivial to fix and doesn't loose data. -- Thomas Cameron, RHCE, CNE, MCSE, MCT Assistant Vice President Linux Design and Engineering Bank of America (972) 997-9641 The opinions expressed in this message do not necessarily reflect those of my employer, Bank of America. _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list