LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-15-2004, 09:22 PM   #1
Hasegagwa
LQ Newbie
 
Registered: Jun 2004
Posts: 2

Rep: Reputation: 0
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?
 
Old 06-16-2004, 03:44 AM   #2
brownb2
Member
 
Registered: Mar 2004
Posts: 47

Rep: Reputation: 15
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.
 
Old 06-16-2004, 03:45 AM   #3
ssnkumar
LQ Newbie
 
Registered: Mar 2004
Location: Bangalore
Posts: 26

Rep: Reputation: 15
Smile 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
 
Old 06-16-2004, 03:45 PM   #4
ssimpson
LQ Newbie
 
Registered: May 2004
Posts: 6

Rep: Reputation: 0
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.
 
Old 06-16-2004, 11:39 PM   #5
ssnkumar
LQ Newbie
 
Registered: Mar 2004
Location: Bangalore
Posts: 26

Rep: Reputation: 15
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
 
Old 06-17-2004, 04:23 AM   #6
Hasegagwa
LQ Newbie
 
Registered: Jun 2004
Posts: 2

Original Poster
Rep: Reputation: 0
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.

Last edited by Hasegagwa; 06-17-2004 at 04:54 AM.
 
Old 06-17-2004, 12:09 PM   #7
ssimpson
LQ Newbie
 
Registered: May 2004
Posts: 6

Rep: Reputation: 0
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 !!
 
Old 06-18-2004, 04:45 AM   #8
ssnkumar
LQ Newbie
 
Registered: Mar 2004
Location: Bangalore
Posts: 26

Rep: Reputation: 15
Are you able to telnet to that system?
 
Old 06-18-2004, 11:42 AM   #9
ssimpson
LQ Newbie
 
Registered: May 2004
Posts: 6

Rep: Reputation: 0
Yes, I am able to telnet (SSH) and FTP to the Suse box
 
Old 06-21-2004, 12:57 AM   #10
ssnkumar
LQ Newbie
 
Registered: Mar 2004
Location: Bangalore
Posts: 26

Rep: Reputation: 15
Are you sure, XDMCP is enabled?
 
Old 06-24-2004, 04:24 PM   #11
ssimpson
LQ Newbie
 
Registered: May 2004
Posts: 6

Rep: Reputation: 0
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 ?
 
Old 06-25-2004, 01:04 AM   #12
ssnkumar
LQ Newbie
 
Registered: Mar 2004
Location: Bangalore
Posts: 26

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

-ssnkumar
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Enable remote root login in /etc/securetty jon_k Linux - Software 5 03-16-2011 11:52 PM
Help: cannot remote login as root tho_x_tran Linux - Security 7 09-11-2004 12:05 AM
Xserver restarts when trying to login to KDE 3/Suse 9.1 Tokabowla Linux - Software 0 07-05-2004 03:24 AM
WU-FTP root login remote adme Linux - Networking 2 02-07-2003 02:58 AM
Denying remote root login with SuSE 7.1 midnightcommander Linux - Networking 2 07-08-2001 06:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration