LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Remote login with root from XServer(SUSE 9.0) (https://www.linuxquestions.org/questions/linux-networking-3/remote-login-with-root-from-xserver-suse-9-0-a-193986/)

Hasegagwa 06-15-2004 09:22 PM

Remote login with root from XServer(SUSE 9.0)
 
No foreign root login allowedh message appears
when trying to connect to remote SUSE 9.0 server by using Xserver
(Ifm using EXEED9.0) though the following setup has been done.and then
xdm restarting..
(Connection success if normal user is used.)

/etc/X11/xdm/Xservers
Comment out one line
#:0.local/usr/X11R6/bin/X
/etc/X11/xdm/xdm-config
Comment out two lines
!DisplayManager.accessFile: /etc/X11/xdm/Xaccess
!DisplayManager.requestPort 0

This setup can login with root in case of Redhat, but SUSE 9.0
Does anyone know how to set up in SUSE case?

brownb2 06-16-2004 03:44 AM

Edit your kdmrc (or equivalent display manager) config file to allow root access. Theres usually a section that mentions allowing root access - just uncomment it.

ssnkumar 06-16-2004 03:45 AM

Regarding remote telnet as root
 
Open the file /etc/pam.d/login

In this file there is a line:

"auth required pam_securetty.so"

Comment this line

If it is not commented, then the system will not allow root to login thru telnet!

-Narendra
:Pengy:

ssimpson 06-16-2004 03:45 PM

I have installed the latest Suse 9.1 and have not been able to access it through eXceed.
Could someone please tell me the steps to make it work, like the configuration changes or anything ?

Any suggestion will be appreciated.

ssnkumar 06-16-2004 11:39 PM

Regarding access from Exceed
 
Hello Ssimpson,

For accessing from Exceed, it needs the XDMCP protocol to be enabled.
To do this:
1. Uncomment the line: "DisplayManager.requestPort: 0" in the file: /etc/X11/xdm/xdm-config.
2. Uncomment the line: "# * #any host can get a login window" in the file: /etc/X11/xdm/Xaccess
3. In the Exceed control panel, in the XDMCP tab, check the "Enable XDMCP" check box and
Select broadcast.
4. Restart the server.

With this you must be able to access the X server using Exceed from a remote machine.

-ssnkumar

Hasegagwa 06-17-2004 04:23 AM

I succeeded in remote login with root by uisng xserver after all of doing suggestions and also
the following two setup in addition.
uncomment all of ttyn descripion
/etc/securetty
#tty1
#tty2
#tty3
#tty4
#tty5
#tty6

set DISPLAYMANAGER_REMOTE_ACCESS is set to yes, and
set DISPLAYMANAGER_ROOT_LOGIN_REMOTE is set to yes
in file /etc/sysconfig/displaymanager.

Thank you very mauch.

ssimpson 06-17-2004 12:09 PM

Thanks ssnkumar.

The Suse installation by default have the lines uncommented (step 1 & 2).
When you said "Exceed Control Panel", I assue you were refering to Xconfig. I set the "Communication" to Broadcast. I am able to see the redhat server, with this eXceed setting.

I checked the firewall, to see if everyting was fine. This is the o/p from iptables - L

linux:/home/ssimpson # iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Also, I see the XDM is running.

linux:/home/ssimpson # ps -ef | grep xdm
root 2812 2801 14 05:00 ? 00:00:37 /usr/X11R6/bin/X -nolisten tcp -br vt7 -auth /var/lib/xdm/authdir/authfiles/A:0-UcYCFD
root 3093 3066 0 05:05 pts/39 00:00:00 grep xdm

Please help !!

ssnkumar 06-18-2004 04:45 AM

Are you able to telnet to that system?

ssimpson 06-18-2004 11:42 AM

Yes, I am able to telnet (SSH) and FTP to the Suse box

ssnkumar 06-21-2004 12:57 AM

Are you sure, XDMCP is enabled?

ssimpson 06-24-2004 04:24 PM

In the previus post, I mentioned that when I did a ps and grep, I could see the xdm process running.

Is there anyother way to determine is XDMCP enabled ?

ssnkumar 06-25-2004 01:04 AM

xdm process is running on Linux.
What about windows? Is it listening to XDMCP?
This is what you configure on X-client (Exceed)

-ssnkumar


All times are GMT -5. The time now is 01:38 AM.