- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: how to login as root, using telnet???
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2004 03:16 AM
тАО03-04-2004 03:16 AM
when I telnet the remote machine running RedHat 8.0, as root, it doesnt allow to connect to as root, and said "login incorrect". why???
what should I have to do so that I can telnet the system as root.
Ok, I telnet the remote system as a normal user, and then I issue "su" command so that i can logon as root, so i write "$ su root" and provide root password, I(root) logon succeesfuly, but whatever command I issue(i m root now) the system says "bash: shutdown: command not found" or "bash: init: command not found", so I want to know that why I cant do any admin work(receiving "command not found"), although I m login as root on the remote machine.
Thanks in anticipation
Regards
Sharf
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2004 03:27 AM
тАО03-04-2004 03:27 AM
Re: how to login as root, using telnet???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2004 04:07 AM
тАО03-04-2004 04:07 AM
Re: how to login as root, using telnet???
Then, look at root's .profile and see if PATH is being set to something silly. A common path error is something like "export PATH=/usr/local/bin:PATH" (missing the $ before the second PATH). This will make most applications "Not found".
If you are being given a login message then it isn't an xinetd problem. May want to check that your tty's are in /etc/securetty but that won't cause the problem you get after you su.
check your environment, run "env" and see if there a re any obvious variables not set correctly, $HOME comes to mind.
All in all, to me it looks like there is a bit of a problem with the root account. Either in one of the .profile type files or in /etc/passwd itse├Г┬╕
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2004 05:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2004 05:38 AM
тАО03-04-2004 05:38 AM
Re: how to login as root, using telnet???
if you really want to login as root you need to
adapt /etc/securetty and add your terminal like
tty1
tty2
....
Having said that, generally it is a better idea to use ssh for this purpose. Try
ssh root@
This will most probably work. You might need to confirm the setup of some keys upon first login.
Greetings, Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2004 10:54 AM
тАО03-04-2004 10:54 AM
Re: how to login as root, using telnet???
The two main ways of allowing the user 'root' to telnet into a machine is to stack the /etc/securetty with pseudo tty's (defeats the purpose), or to modify the /etc/pam.d/telnet, removing the reliance upon the 'secretty' lib.
Generally though, do away with telnet, and just use SSH.
The whole point of not allowing access to root directly is a security measure to stop people from dictionary-hacking the machine remotely.
Even if they break into a user account, they then have to do it again to get any privileges.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2004 05:23 PM
тАО03-04-2004 05:23 PM
Re: how to login as root, using telnet???
I don't think its a good idea to allow root login via telnet. Thats the reason why its disabled on your system.
In any case if there is a pressing need for you to do this for variety of reasons know to you, our colleagues have already posted solutions.
I would think telnetting as yourself and then doing a su would be the way to go. Also i would suggest that you think of implementing SSH on your systems, that would make them more secure
Just my thoughts
regards
Mobeen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2004 06:19 PM
тАО03-04-2004 06:19 PM
Re: how to login as root, using telnet???
Unfortuately, I have to left my city, so I cant do the work u people suggest.
I'll be in my city Tommorow, then I'll reply again.
Thanx to All
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2004 11:00 PM
тАО03-04-2004 11:00 PM
Re: how to login as root, using telnet???
You're using su without the "-" symbol, which sets root's environment for your session.
So, try this command:
su - root
And you will find all your commands.
HTH,
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2004 11:10 PM
тАО03-04-2004 11:10 PM
Re: how to login as root, using telnet???
I should say you have a good eye for details :-). I did not notice that he was not using '-' with su.
regards
Mobeen