Re: make rpm fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 02 May 2003 11:44 pm, Bret Comstock Waldow wrote:
> On Fri, 2003-05-02 at 23:14, Michael Fratoni wrote:
> > Normally, you don't have to be root to build rpms. You can just set
> > up a non root rpm build environment in your home directory.

> I can accept I don't need to be root to build rpms, but how often is it
> useful?  An rpm is usually to install some software, and most of that
> seems to need to be root.  Or am I displaying my naivete?

True, you must be root to install binary rpm packages.

However, rebuilding packages from source is also common.

Now, suppose I rebuilt an rpm package containing a specfile defining:
RPM_BUILD_ROOT="/"
rm -rf $RPM_BUILD_ROOT

As root, the system would be trashed, as a normal user, "permission
denied" would begin scrolling down the screen. Obviously, this is a lame 
example, but it illustrates that things can go wrong. When they do, 
better to be a mortal user than root.

- -- 
- -Michael

pgp key:  http://www.tuxfan.homeip.net:8080/gpgkey.txt
Red Hat Linux 7.{2,3}|8.0 in 8M of RAM: http://www.rule-project.org/
- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+s0H7n/07WoAb/SsRAt/cAJ0czCjBweX+X4mr7FFYdjLpqWdPwACcDIw3
m2d4HPeqCUgcrU9khSSLvwM=
=P8gz
-----END PGP SIGNATURE-----





[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux