Hi Kyle,

On Wed, Jan 16, 2008, Kyle Nitzsche wrote:
> Anyone know how to launch target in Xephyr as ume user, not root?

 This is something I do regularly, but which is very hackish.

 First, I have an ume user on my host; it has uid 1001.

 Second, the ume user is usually created by ume-config-common in the
 targets but with first available uid of 1000.  I change this uid in
 /etc/passwd and /etc/group in the /targets/<image>/fs chroot.

 Third, I'm fixing the Xephyr startup to run as ume:
 - I install xserver-xephyr manually as root
 - I start dbus manually in the chroot as root and comment this out of
   the ume-xephyr-start script
 - I make sure that /tmp is bind mounted (image-creator does this
   automatically I think) as well as /home (for Xauthority)

   CAUTION: if you bind mount /home, make sure you unmount it before
   removing your target, or you could cause image-creator to rm -rf your
   home

 This works well for me, but should be made more easy.  Also, this
 doesn't plug the current hole that Xephyr is run with -ac in the
 script, but that's not an issue on single user systems.

-- 
Loïc Minier

-- 
Ubuntu-mobile mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile

Reply via email to