On Mon, Mar 12, 2007 at 01:04:35PM +0530, Lis Maria wrote: > I have a doubt regarding the %attr in the %file section of the spec file. As > per the documents, if we give %attr(-,root,root) and some file name, it > should make root as the owner of that file after installing right? Right. > So, i want to make a user as the owner of some file > > i.e %attr(-,lis,lis) sample.txt > > But when i install the rpm, i see root as the owner, and till now what i > have been doing is to manually go and change the owner. I am installing the > rpm as user ' lis' only (through sudo). If user "lis" exists when installing the rpm, or if you create user "lis" in the "%pre" script, this should work, I never had problems with it. -- -- Jos Vos <jos@xxxxxx> -- X/OS Experts in Open Systems BV | Phone: +31 20 6938364 -- Amsterdam, The Netherlands | Fax: +31 20 6948204 _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list