[wplug] setting hostname

Chris vze2f6h6 at verizon.net
Thu Jan 15 09:16:29 EST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

wplug-admin at wplug.org wrote:
> Hello,
> I have a server that is virtually hosting a few websites for
> my friends and
> others.  I give everyone shell access with SSH and on the
> command line I
> want the prompt to read "[username at hostname] $" where hostname is the
> virtual domain name they used to login.  So say friend 1
> logins to domain1
> and friend 2 logins to domain 2, I want the prompts to read
> "[friend1 at domain1]$" and "[friend2 at domain2]$" respectively.
> Now of course
> both of those domains resolve to the same IP address.  I was
> just wondering
> if there was a way I can use sshd to figure out what hostname
> they typed in
> and set HOSTNAME accordingly.  Maybe I'm not able to figure
> out that with
> sshd, but if anyone has any ideas please let me know.  Thank you.
> 

Can't you put commands in their .bashrc file that changes the prompt.  It
will only involve modifing their files once and if it's only a couple of
people will take no time at all.

Chris Romano

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.8 for non-commercial use <http://www.pgp.com>

iQA/AwUBQAagvQvHK4/UMrUIEQKxoACfSPghTYKgNGeaAy7jMAe7p1KqAJIAn1Fw
8QNW3CGTxfTIqV9EzuXdZOeA
=SvKO
-----END PGP SIGNATURE-----




More information about the wplug mailing list