Displaying 1 result from an estimated 1 matches for "postdrop_group".
2008 Oct 15
2
creating a user from an RPM package
What wizardry do you guys use in the SPEC file when creating/deleting a
user from an RPM package?
I was going to create a macro like:
%define user(login,uid,gid,name,homedir,shell) \
echo "$1:x:$2:$3:$4:$5:$6" >>/etc/passwd; \
echo "$1:!!:12005:0:99999:7:::" >>/etc/shadow; \
echo "$1:x:$3:" >>/etc/group; \
mkdir