[96411] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: Virtualising a Linux system

daemon@ATHENA.MIT.EDU (Simon J Mudd)
Mon Oct 26 23:17:23 1998

To: redhat-list@redhat.com
From: Simon J Mudd <sjmudd@bitmailer.net>
Date: 26 Oct 1998 19:15:12 +0100
In-Reply-To: "Simon Garner"'s message of 26 Oct 1998 18:02:31 +0100
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

"Simon Garner" <sgarner@expio.co.nz> writes:

> a) how can I stop users from seeing other users' processes with
> the 'ps aux' command? They must still be able to see their own
> processes, however.

I don't know if there is a proper way of doing this.
A quick hack is to do (as root)

# chmod o=x /proc

which effectively stops you looking at the proc filesystem.  Other 
utilities will probably break though, and thus this may not be a good
idea.  I don't know if any tools are available which allow you to only
see your processes.

> b) how can I make it so that when a user logs in with their shell
> account and runs a command like 'uname -n' (which prints the
> current hostname), it prints their own domain name? E.g. if we're
> hosting their domain name "foo.com", I want them to see "foo.com"
> as their hostname in the shell.

The hostname doesn't have anything to do with the interface name which
they login on.  I'd setup the hostname to virtual.foo.com.

If you want to really virtualise a system you are going to have to
severely limit the binaries that the client has access to so that they
can't get out of the "virtual machine".  This would leave a very basic
machine and with that they probably wouldn't want to login!

Simon
--
Simon J Mudd, Madrid SPAIN  Tel: +34-91-559 2854  email: sjmudd@bitmailer.net
[short messages - from radio hams only]     ---->      ea4els@ea4els.ampr.org


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with 
                       "unsubscribe" as the Subject.


home help back first fref pref prev next nref lref last post