Hi
Actually, what happens in my RPM building & releasing is ....
I am creating the RPM in a seperate box as some user, and then i am trying to install the RPM on a different box as user 'lis'.
So while installing, it actually searches for the user who built the RPM, and since it is not there it takes root as default.
I cannot guarantee that the user who built the rpm will be present in the release box, but i can ensure the 'lis' user will be there and i want lis to own all the files installed through RPM .... :)
Hope you got me...
Thanks
Lis
On 3/12/07, Jos Vos <jos@xxxxxx> wrote:
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
_______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list