Open the main KDE menu and choose UserMode Linux.LIDS On. 2.When the happy penguin appears, log in as user root(the password is 12qwaszx) (see Figure 58-1). Figure 58-1: The UML login screen. When you re inside a UML VM, you have com- plete access to the hostfile system through thedirectory /mnt/host. If you peek at /mnt/host, you ll see subdirectories like /mnt/host/bin, /mnt/host/etc, /mnt/host/usr, and /mnt/host/ home. Those directories correspond to the /bin, /etc, /usr, and /homedirectories on the hostcomputer. That s not a good arrangement when you re trying to block off access to those files. 3.To close that security hole, find a directory thatyou do want to expose to the jail (or better yet, just create an empty directory) and grant theVM access to that directory instead. For example, create a staging area like this: # mkdir /tmp/uml/jailRun that command in the host, not in the UML VM. Be sure that the /tmp/uml/jaildirectorycontains no symbolic links to the rest of thehost system. Use the ls -lcommand to listthe directory contents; if any of the permis- sions begin with an l, they re symbolic linksand should be deleted. Any files that you put into /tmp/uml/jailwillappear inside the VM in the directory /mnt/host. After you create the jail and add files to it, adjust thescript that boots your VM: 1.Open the file /usr/bin/umlwith your favoriteeditor. 2.Find the line (near the top of the file) that the line to readLIDS_KERNEL= Don t forget the quotes, or your UML VMwon t boot. 4.Find the line that line should be just below the line in Step 2.5.Change the line to readSELINUX_KERNEL= 6.Save your work and close the editor. Now you can easily copy files between the host andthe VM to populate your UML jail. You can copyfiles into (or out of) /tmp/uml/jailfrom your hostsystem. Inside the VM, copy files into (or out of) /mnt/host. It doesn t get any quicker or easier than that.
From our experience, we can recommend Web Hosting services, if you need affordable webhost to host and run your web application.
tag: best web hosting



May 31, 2008
Leave a Reply