Red Hat Bugzilla – Bug 481512
livecd-creator requires root password
Last modified: 2009-01-28 15:57:49 EST
Description of problem:
livecd-creator refuses to be launched by an ordinary user. It should be possible to create an ISO image as ordinary user using globally writable directories/files or (better) carry out all necessary operations confined to the user's home directory.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Log in as non-root user and launch 'livecd-creator ...' from a shell.
System replies "You must run livecd-creator as root".
Creation of live CD image file begins.
I do not see the need for running livecd-creator as root. For creating RPM packages using 'rpm', this mode has long been deprecated. It is much better to set up the build directories locally in the user's home directory and create them as ordinary user with limited rights. As of F10, /usr/src/redhat/.. does not even exist anymore. Even when running 'rpm' as root, the build process happens in root's home directory. The same reasoning applies to livecd-creator, at least in my eyes.
We can't create a filesystem with binaries that are owned by (and suid!) root as a regular user... doing so would be a significant security problem as it would give a trivial way to root a box.
Much like mock has to run as root to create a chroot, we have to create the chroot that is the livecd by root.