Because to change ownership of a file requires 'root' privileges; not because the files necessarily need to be owned by 'root' - although many are.
Create a file in your home directory and try to change it's owner:-
touch test.txt
ls -l test.txt
-rw-rw-r--. 1 gareth gareth 0 Jun 28 21:24 test.txt
chown nobody. test.txt
chown: changing ownership of ‘test.txt’: Operation not permitted
Although I owned the file and have rw
permissions, I can't change the owner.
sudo chown nobody. test.txt
ls -l test.txt
-rw-rw-r--. 1 nobody gareth 0 Jun 28 21:24 test.txt
But running it as root using sudo
works.
As the warning says; ownership will be wrong. From that, we can assume that alien
changes the ownership of some files.
System files are generally owned by 'root' with restrictive privileges so that mere users like you and I don't change or delete them.
There are also other users and groups on a system, but unlike 'root' they are not the same across distros. For example, under Fedora (and RedHat and CentOS) the Apache
webserver runs as apache
and the data files are owned by that user. On the other hand, I believe that Apache
runs as www-data
on Debian/Ubuntu systems and consequently, data files are owned by that user. This means that alien
needs to change the owner of files when converting and to do this, as you can see in the example above, it needs to be running as 'root'.