Dear All,<br><br>I had built some RPMs for our product on RHEL4  ( rpm ver= rpm-4.3.3-26 ). Now I'm migrating these rpms to RHEL6 ( rpm ver = rpm-4.8.0-16 ). <br><br>One of the rpms has files owned by different users. <br>
<br>Eg. In qmail queue, "queue/remote" folder is owned by "qmails" user while "queue/todo" folder is owned by "qmailq" user. <br><br>The qmail makefile creates the files with appropriate permissions and ownerships. There is no code to set the permissions/ownership in spec file.<br>
<br>In RHEL4, rpm was automatically taking the file permissions set on the files during the build/compile phase. But in RHEL6, it is changing the ownership to root.root.<br><br>My files section is :<br><br>%files<br>/var/qmail/bin<br>
/var/qmail/boot<br>%config(noreplace) /var/qmail/control<br>/var/qmail/doc<br>/var/qmail/log<br>/var/qmail/man<br>%config(noreplace) /var/qmail/queue<br>/var/qmail/users<br>/var/qmail/rc<br><br><br>After searching the net, I tried using %defattr(-,-,-,-) macro at global level and the %attr(-,-,-) macro per entry in the %files section. But to no avail.<br>
<br>Can anybody point me in the right direction ? <br><br>Thanks for all the help in advance.<br>Amol.<br>