On Wed, 18 Apr 2001, rpjday wrote:
>
> i came into this late, but let me try. it sounds like you are opening
> another xterm to become root with "su", possibly. in any case, when
> you get the DISPLAY error problem, try:
>
> $ export DISPLAY=:0
>
> and try again. but i'm still curious if you're using "su", since
> you mention you're running netcfg, and that normally needs root
> privilege.
>
> rday
>
>
If you use "su" to change to root from an xterm, DISPLAY should still be
set. If you use "su -", then DISPLAY will no longer be set, but setting
DISPLAY will not work because the user will not have permission to use
the diplay. You ether have to run xhost+ (security risk - anyone on the
network can connect to your display!), xhost localhost (security risk -
any logged into the local machine can connect to the display, including
telnet or ssh users.), or use xauth to give the user permission to use
the display. (Safe, but complicated.)
If you use "su" to change to root, you do not have /sbin and /usr/sbin
on your path, and you stay in the same directory, instead of chaning to
/root.. Not a big problem, but something to keep in mind.
Mikkel
--
Do not meddle in the affairs of dragons,
for you are crunchy and taste good with ketchup.
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list