disabled the direct root login on all the AIX LPARs. So' only can become root by "su" to root from normal/regular user account.
This is a rather problematic setting. What are you going to do if something fails and you need to access the system via the console window from the HMC?
set "rlogin=false" but leave "login=true" for the root account! Everything else will get you into very deep kimchi once something fails. "rlogin=false login=true" means that root cannot log on from the network but can still log on from the console.
The reason why the root account has a different environment when you log in and when you sudo su - is most probably because sudo clears the environment before issuing su. The DISPLAY variable is set via the ssh because of the (implied or explicitly set) -X switch. You can write a little wrapper script to read that variable, store its value in a temp file and then retrieve it once you switched to root, setting it again to that value (similar to what agent.kgb suggested, but automated).
As you've mentioned,
we've already set "rlogin=false" & "login=true" for the root account! I understand that, root cannot log on from the network (ssh/telnet/etc) but can still log on from the HMC console.
we normally login with our USER accounts, and "su" to root (*provided we've the su capability & know root password)
So' I logged on to this particular test AIX LPAR using my "testaix" and were able to "su" to become root.
everything works as expected. If we need to login as root direcly, we normally use HMC console.
Issue is,
I can run xwindows using my user account "testaix" ; and I did su to root and not able to run xwindows as root.
I've tried agent.kgb's suggestion. It did not work for me.
FYI
just for testing, enabled direct root login from network (ssh). it worked.
But I was looking for a solution, without even enabling direct root login.
Thank you for your ideas/suggestions. appreciate your time.
You did not say what X manager you were using
to me is something is badly configured on the Xserver and as I see putty - I believe it on your PC... Have you enabled on Putty ( tick Enable X11 forwarding...) ?
I use reflection X and have no trouble.. even going through what is supposed to no work ( through PAM and bala...) only to get from the bastion machine to my server I have to use also
And using cmd.exe to typeipconfig on my PC to pick my current IP I have to enter
Sorry I am trying hard to correct what I type but I suffer from dislexia ... and some time its out of control...
Hi All
After downloading ZFS documentation from oracle site, I am able to successfully migrate UFS root FS without zones to ZFS root FS. But in case of UFS root file system with zones , I am successfully able to migrate global zone to zfs root file system but zone are still in UFS root file... (2 Replies)
I am trying to direct a AIX display to my XWindows and I am at a dead end now!
So this what I've done so far:
1. In putty settings, I set "Enable X11 forwarding" and also set "X diplay location" to "localhost:0" (without quotes, of course)
2. Via putty, connected to my AIX server
3. On... (1 Reply)
I have written a simple script to show battery life remaining. I would like to be able to quickly view it with a predefined keybinding or launcher.
xterm -e scriptname should do the trick but the xterm closes when the script finishes, not giving me chance to read the output. How can I keep... (3 Replies)
the question i have is why Xwindows(GUI) is not part of kernel level but part of user level in unix while in windows the GUI (Windows manager) it is part of kernel level.
For one thing is when GUI hangs it does not crash the whole system as in Windows
But windows avoids context... (0 Replies)
hi all
i have some question if any one can help me please
How get root without local ? :(
&
How get root with open port in server use the telnet ? :(
&
How get root with Buffer Overflows ? :(
please help me
thanx to all (2 Replies)
i m working on a project of making linux boot and run from a pendrive.
I have got a minimal root filesystem with busybox.
I wish to install X Server now. I downloaded the source tar balls, untarred them on the host system, used the default host.def issued commands
$make WORLDOPTS=-k World >&... (0 Replies)
i m working on a project of making linux boot and run from a pendrive.
I have got a minimal root filesystem with busybox.
I wish to install X Server now. I downloaded the source tar balls, untarred them on the host system, used the default host.def issued commands
$make WORLDOPTS=-k World >&... (0 Replies)
Hello ,
I've got a problem with my SCO 5.0.5 :
When I try to open a graphical session with any user account (login/password) ,
I get a black screen then go back to the scosession window .
For root account , there's no problem .
Any idea ?
Thanks . Regards (1 Reply)
I have written some Xwindows files would like to know how to compile them
tried this command
gcc -o main main.o -lXt -lX11
gives errors like could not find Xt & X11
help please (5 Replies)
I have a pretty basic XWindows question. I'm using Linux and the BASH shell. I want to connect to a machine that is running a Java IDE (we currently have I think "SlickEdit" but we're probably going to download Netbeans, Eclipse) and view the IDE on the client machine. I tried "xhost +" on the... (5 Replies)