Yes, with caution...
<clip>
>
> Question 1 is still open. Is there any way to configure so I can log in as
> a different user in X without first logging out and without opening a root
> window. In reality there is only one console but I have different users
> with different emails, configs, etc.
1) You are user "gdm"
2) create a script called "user1" : (use your real usernames here)
#!/bin/sh
xterm -e /bin/su - user1
3) make the script "user1" executable "chmod 755 user1" (maybe 700)?
4) type ./user1
and you will be presented with an xterm and a prompt:
Password:
After you supply the Correct Password, you will be "user1" inside
of the xterm. You can do "commandline stuff"(tm?) all day long...
If you want to pop X apps up onto the screen, you will have to
follow the advice listed below.
***Great Big Caution***
IF you use "xhost +" , I will be able to sit here in
Sunny North Texas and issue X apps up onto your screen
at my discretion!
Might I suggest "xhost +localhost" instead.
You can place this line in YOUR ~/.xsession file and it will
be read when you log into X.
Place the line:
export DISPLAY="localhost:0.0"
into your users of choice ~/.bash_profile
(or whatever *shrc they use.)
I use fvwm here and for my "child processes", I have a Popup button
defined in my ~/.fvwmrc that pulls up an xterm -e /bin/su - child_name
and they can play games, etc....
Have fun,
Rick
>
>
> Thanks
>
> Gree
>
>
<clip>
> >
> > A must type "xhost +" first, then B must type "export DISPLAY=hostname:0"
> >
Sysadmin demonstrates "Full Body Shudder" and writes wrapper for xhost!
--
Rick L. Mantooth [EMAIL PROTECTED]
http://www.why.net/users/rickdman/index.html
Lead me not into temptation, I can find it myself.
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.