File ownership in %install
Frank Steiner
fsteiner-mail1 at bio.ifi.lmu.de
Sat Jun 13 15:39:03 UTC 2020
Hi,
when I started with my own spec files many years ago I always used
lines like
install -o mysql -g mysql -m 700 blabla $RPM_BUILD_ROOT/...
and I'm pretty sure that the file blabla belonged to mysql:mysql
after installation of the rpm, although it was not mentioned in
%files with any attr. Actually, we always collect the list of
files with a find command and use "%files -f files.list", so
attr/defattr is never used.
With a new RPM I wrote recently I used install lines with owner
and group like above, but all files belong to root:root after
installation and I couldn't find any way to change that except
using attr/defattr in %files.
Has this behaviour changed at some time in the past? Or is my
remembrance just wrong?
cu,
Frank
--
Dipl.-Inform. Frank Steiner Web: http://www.bio.ifi.lmu.de/~steiner/
Lehrstuhl f. Bioinformatik Mail: http://www.bio.ifi.lmu.de/~steiner/m/
LMU, Amalienstr. 17 Phone: +49 89 2180-4049
80333 Muenchen, Germany Fax: +49 89 2180-99-4049
* Rekursion kann man erst verstehen, wenn man Rekursion verstanden hat. *
More information about the Rpm-list
mailing list