>Because I want to: > > grep $i /etc/passwd || grep $i passwd.new >> /etc/passwd > >in the passwd, group, shadow, etc files. This lets me test if they're >already there and add them if not, preventing duplicate entries. 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. _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list