I understand that in order to have a network among UML and the host system,
UML must be launched by root. Is there a way to provide networking by having
root launch the uml_net daemon and a simple user launching UML?
I want to use UML in an Operating Systems Course and would like the host
system to export via NFS a directory to the UML boxes launched by the users.
From: D. Joe Anderson <deejoe@ra...> - 2002-01-21 15:00:53
On Mon, Jan 21, 2002 at 01:54:50PM +0200, ÁëÝîáíäñïò Êáñõðßäçò (Alexandros Karypidis) wrote:
> Hi everyone,
> I understand that in order to have a network among UML and the host system,
> UML must be launched by root.
> Is there a way to provide networking by having
> root launch the uml_net daemon and a simple user launching UML?
Yes. One can have uml_net setuid root. This is how the rpm I'm using works,
as downloaded from the sourceforge site:
$ rpm -q user_mode_linux
$ rpm -ql user_mode_linux
$ ls -ld /usr/bin/uml_net
-rwsr-xr-x 1 root root 18588 Dec 8 23:18 /usr/bin/uml_net*
The "s" indicates that when this binary runs, it will be run with the
permissions of the file owner, rather than with the permissions of the
account executing it. In other words, uml_net will be run with root access,
even if called by an instance of the user-mode linux excutable launched by a
This is configured this way as well with the Debian packages. I have used
this on both Debian and Redhat host systems to set up an external network
connection. I use the network connection to add software to uml instances
running atop the small Debian root_fs image, via apt-get and external Debian
This has given me a lower-risk, lower-hassle way to gain experience with
networking tools, with Debian software installation, and with Debian
> I want to use UML in an Operating Systems Course and would like the host
> system to export via NFS a directory to the UML boxes launched by the users.
> User-mode-linux-user mailing list