Summary - How does one run Admintool on a client (and not the server)?

From: Ju-Lien Lim (jlim@oxhp.com)
Date: Tue Mar 25 1997 - 14:22:19 CST


Just wanted to thank everybody for responding and also to post a summary
of all the suggestions!

Thanks again.

Ju-Lien Lim Tel #: (203) 459-7691
Network System Administrator Fax: (203) 459-7890
Oxford Health Plans Pager #: (203) 534-0825
E-mail: jlim@oxhp.com

--------------------------------- O R I G I N A L Q U E S T I O N
----------------------------------------------------------

From: Ju-Lien Lim
Sent: Tuesday, March 25, 1997 11:12 AM
To: 'Sun-Managers Mailing List'
Subject: How does one run Admintool on a client (and not the server)?

Hi there! I'm very new to Solaris, and I've been wondering is it
possible to run the Admintool on a client (logged in as root) instead of
the server? If there is a way, I would definitely appreciate your
assistance on how to do so.

Thanks in advance.

-------------------------------- S O L U T I O N S
------------------------------------------------------------------------
------

From: Boyko, Steve[SBoyko@nbpower.com]

Certainly, as long as your client is running an X Windows server.

On my PC, I use eXceed 5 for Windows as my X Windows server. I telnet
to the Sun box, log in, and become root via the su command. I then type
admintool and the windows come up on my PC.

Is this what you meant?

From: Charles Gagnon[charles@Grafnetix.COM]

Yes. There is a way and here's my assistance on how to do so... :-)
- Check on the server to make sure the credentials are there for your
client.
  server# /usr/bin/niscat cred.org_dir | grep client_machine
- On the server, add your client to the admin group:
  server# /usr/bin/nisgrpadm -a admin client_machine
- On the server, make sur admind is running or configured in
/etc/inetd.conf.
- On the client, start admintool as root (naturally)...

From: Eric J. Ostrander[ejo@astro.phys.cmu.edu]

All you should need to do is

on the client:
   xhost +server_name

on the server:
   setenv DISPLAY client_name:0.0

From: Daniel Baker[dbaker@hobbes.cuckoo.com]

No, but just login to the server, and set your DISPLAY environment to
yourclientmachinename:0.0 then you can do REMOTE-X

From: John D Groenveld[groenvel@cse.psu.edu]

With ssh or xauth security, you should be able to su - root and then
(HOME=/home/user; export HOME; admintool -display client:0) from a
server window.

From: Sherman, Mark[mark@dbs-mia.com]

Make sure you set up .rhost files and xhost + to allow remote logons.
Then telnet (or rsh) to the server, make certain display is set to your
workstation and
Run admintool.

From: Mark Hargrave[meh@wisdom.maf.nasa.gov]

On client, type in:
xhost +
On server, type in:
setenv DISPLAY <clientname>:0
admintool &

From: george@esa.nascom.nasa.gov[george@esa.nascom.nasa.gov]

at the client:
        xhost +<servername>
telnet to server as root:
        DISPLAY=<clientname>:0 export DISPLAY
or,
setenv DISPLAY <clientIP address>:0
and then just admintool&

From: Matthew J. Hill[MHILL@graver.com]

it's very easy to do so. and, it's not necessary for you to be
logged in as root. in fact, it's very advisable for you to spend as
little time logged in as root as possible, and *never* run X as root.
(if you absolutely *need* to run a specific X program as root, log in
as your regular user, start X, and then su to root in an xterm
window.)

add yourself to group 14 (sysadm) on the server. this will give your
regular user permission to run admintool and do all the root-things
admintool lets you do. of course, you have to do this part as root,
but it's fairly easy to su to root, vi the /etc/group file, and
switch back.

to run admintool on the server when you're not actually there, e.g.
sitting in front of another sparcstation, execute the following
commands on the server (i assume you're using sh or some derivative;
the csh syntax is similar:)
$ DISPLAY=stationname:0.0
$ export DISPLAY
$ admintool
where, of course, "stationname" is the name of the machine you're
sitting in front of. if you're not nfs mounting your home directory
from the server, then you will need to do "xhost +servername" on the
client before admintool will be allowed to connect.

From: Terry O.[tokus@botanybay.centcom.mil]

You must specify your DISPLAY variable on login. follow these steps:
rlogin to server from your client.
next enter the following command:
  for csh - setenv DISPLAY <hostname of client>:0,0
  for sh - DISPLAY=<hostname of client>:0,0;export DISPLAY
on the client machine enter: xhost +<hostname of server>
run admintool on server and the display will show on the client.

From: Brion Leary[brion@dia.state.ma.us]

Set DISPLAY environment var to hostname:0, export DISPLAY.
Any X program subsequently run will display on hostname.
Alternativley most, if not all, X programs will take an
argument of -display hostname:0.

Note - you may need to allow external sessions from your
X station, if you're running openwin you may need to use
xhost(1).



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:49 CDT