LinuxQuestions.org
Visit Jeremy's Blog.
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 09-14-2005, 07:51 AM   #1
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Rep: Reputation: 30
telnet problem.


mandrake 10.0

i have problem on connecting by telnet.

[root@Simlab-node4 root]# telnet 10.255.240.229
Trying 10.255.240.229...
Connected to ws229.ltsp (10.255.240.229).
Escape character is '^]'.
Fedora Core release 3 (Heidelberg)
Kernel 2.6.9-1.667 on an i686
login: root
Password:
Login incorrect

login: root
Password:
Login incorrect

login:



[root@Simlab-node4 root]# ssh 10.255.240.229
root@10.255.240.229's password:
Last login: Wed Sep 14 18:20:01 2005 from 10.255.240.208
[root@g04 ~]#


i know password is correct is correct not that is not allowing to login.
now where is the problem.
 
Old 09-14-2005, 09:51 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2391Reputation: 2391Reputation: 2391Reputation: 2391Reputation: 2391Reputation: 2391Reputation: 2391Reputation: 2391Reputation: 2391Reputation: 2391Reputation: 2391
Hi,

Root access to ssh is permitted/denied by a setting in sshd_config. This PermitRootLogin yes/no is what takes care of root access.

Telnet does not have such a file. This is done, to my knowledge, by /etc/securetty (man securetty for details).

You probably know this already, but: Do not use telnet, it's unsafe. Especially if you login as root (user/password is send over the line without encryption!!).

Hope this helps.
 
Old 09-15-2005, 02:37 AM   #3
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Original Poster
Rep: Reputation: 30
i have this file but i do not know how to change/


[root@g04 ~]# ls /etc/security/
access.conf console.apps group.conf opasswd time.conf
chroot.conf console.perms limits.conf pam_env.conf
[root@g04 ~]# cat /etc/security/access.conf
# Login access control table.
#
# When someone logs in, the table is scanned for the first entry that
# matches the (user, host) combination, or, in case of non-networked
# logins, the first entry that matches the (user, tty) combination. The
# permissions field of that table entry determines whether the login will
# be accepted or refused.
#
# Format of the login access control table is three fields separated by a
# ":" character:
#
# [Note, if you supply a 'fieldsep=|' argument to the pam_access.so
# module, you can change the field separation character to be
# '|'. This is useful for configurations where you are trying to use
# pam_access with X applications that provide PAM_TTY values that are
# the display variable like "host:0".]
#
# permission : users : origins
#
# The first field should be a "+" (access granted) or "-" (access denied)
# character.
#
# The second field should be a list of one or more login names, group
# names, or ALL (always matches). A pattern of the form user@host is
# matched when the login name matches the "user" part, and when the
# "host" part matches the local machine name.
#
# The third field should be a list of one or more tty names (for
# non-networked logins), host names, domain names (begin with "."), host
# addresses, internet network numbers (end with "."), ALL (always
# matches) or LOCAL (matches any string that does not contain a "."
# character).
#
# If you run NIS you can use @netgroupname in host or user patterns; this
# even works for @usergroup@@hostgroup patterns. Weird.
#
# The EXCEPT operator makes it possible to write very compact rules.
#
# The group file is searched only when a name does not match that of the
# logged-in user. Both the user's primary group is matched, as well as
# groups in which users are explicitly listed.
#
##############################################################################
#
# Disallow console logins to all but a few accounts.
#
+:ALL EXCEPT wheel shutdown sync:LOCAL
#
# Disallow non-local logins to privileged accounts (group wheel).
#
#-:wheel:ALL EXCEPT LOCAL .win.tue.nl
#
# Some accounts are not allowed to login from anywhere:
#
#-:wsbscaro wsbsecr wsbspac wsbsym wscosor wstaiwde:ALL
#
# All other accounts are allowed to login from anywhere.
#
[root@g04 ~]#
 
Old 09-15-2005, 09:04 AM   #4
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Original Poster
Rep: Reputation: 30
can any one guess the error?
 
Old 09-15-2005, 09:09 AM   #5
john2
Member
 
Registered: Aug 2004
Location: Wales
Distribution: KDE Neon, Mint, Mageia, OpenSUSE
Posts: 97

Rep: Reputation: 29
Why not just login as a normal user and su to root?
 
Old 09-15-2005, 09:16 AM   #6
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Original Poster
Rep: Reputation: 30
i am root. i want to use my root user.so pls tell me the way to do.
 
Old 09-15-2005, 09:32 AM   #7
john2
Member
 
Registered: Aug 2004
Location: Wales
Distribution: KDE Neon, Mint, Mageia, OpenSUSE
Posts: 97

Rep: Reputation: 29
At the login prompt, give the name of a non-root user. Enter that user's password. When you are connected, type
Code:
su -
and enter the root password. You should now be root (type whoami to confirm).
 
Old 09-15-2005, 09:47 AM   #8
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2391Reputation: 2391Reputation: 2391Reputation: 2391Reputation: 2391Reputation: 2391Reputation: 2391Reputation: 2391Reputation: 2391Reputation: 2391Reputation: 2391
Hi,

Quote:
i have this file but i do not know how to change/

[root@g04 ~]# ls /etc/security/
The file (direcory, actually) you mention is _not_ the file I mention (/etc/security/ vs /etc/securetty)

It could be that the /etc/securetty is not present, which could be the problem. Like I stated before, take a look at the manpage for securetty.

Hope this clears things up a bit.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Telnet problem??? bvram Linux - Networking 4 09-17-2005 06:41 AM
Problem with Telnet shogun Linux - Networking 1 02-04-2002 01:21 AM
telnet and su problem Tusharn Linux - Networking 1 01-16-2002 10:53 AM
Telnet and SU problem!!! AtulGore Linux - Networking 2 12-18-2001 04:28 AM
Telnet Problem skopje909 Linux - General 11 11-11-2001 06:13 PM

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

All times are GMT -5. The time now is 08:04 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration