[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: %attr | Doubt
- From: Jos Vos <jos xos nl>
- To: RPM Package Manager <rpm-list redhat com>
- Subject: Re: %attr | Doubt
- Date: Mon, 12 Mar 2007 08:40:33 +0100
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 xos nl>
-- X/OS Experts in Open Systems BV | Phone: +31 20 6938364
-- Amsterdam, The Netherlands | Fax: +31 20 6948204
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]