LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-25-2003, 05:21 PM   #1
dolvmin
Member
 
Registered: Jul 2003
Location: Florida
Distribution: Red Hat 7.2/8/9, Fedora Core 1/2/3, Smoothwall, Mandrake 7.0/10, Vecter 4, Arch 0.6, EnGuarde
Posts: 289

Rep: Reputation: 30
Remote Reboot -Linux Redhat 7.3


I need to remotely reboot my computer, operating on Linux RedHat 7.3. My remote access is done through TELNET on a Windows XP machine.

First, I can not log on remotely though via TELNET as root. However, I can log on to the computer as any other user and activate Super User. However, only root can reboot the computer, so SU is pointless.

Someone informed me that I might be able to perform what I need, by modifing a init or init.d file in Redhat. He informed me of which, he was not sure if Redhat had these files, because he is used to running ScoUNIX.

Simply put, I need to find a way to remotely reboot my computer through TELNET. Any help would be "greatly" apriecated. Thanks in advance.
 
Old 08-25-2003, 05:28 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
First of all, get rid of telnet and use ssh, its more secure. Anything thru telnet is being broadcasted unencrypted and if that's the case, you might as well just post your IP, username and passwords publicly for all to see.

Second, for the reasons stated above, I highly advise you not to login directly thru telnet as root, as anyone could sniff or obtain your password with ease. It'd be like taking a lollipop from 1 year old. And on a side note, yes, you can't login as root directly cause of these reasons as its totally insecure.

And if you really insist on using telnet still, then what's the problem su'ing to root to reboot? If you need the full path of root do a:

su - root

And then login, as that will give you root's complete path as well, so you wouldn't have to type the full path of any given command.

And also another even more safe way to make your machine more secure, would be to setup sudo, so your user would have access to shutdown or reboot the machine, without ever using root's password.

Regards.
 
Old 08-25-2003, 05:32 PM   #3
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
Quote:
However, only root can reboot the computer, so SU is pointless
Um, unless I am seriously mistaken, su IS root. I know I can reboot this way without a problem.


So are you doing the following:

log in as a normal user
su -
enter root's password
reboot

And if it isn't rebooting, what is it doing? Error messages? By the way, TELNET won't allow root login by default, although you could probably change the config file to allow it. It's a bad idea, but you can do it.

And finally, PLEASE tell me that this computer is on a nice secure, private LAN and your not using TELNET across the internet. TELNET is insanely insecure and if you have even the slightest exposure to the internet you really should be using ssh.
 
Old 08-25-2003, 05:33 PM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
Dang. Beaten to the punch by trickykid. On all counts too!
 
Old 08-26-2003, 08:12 PM   #5
dolvmin
Member
 
Registered: Jul 2003
Location: Florida
Distribution: Red Hat 7.2/8/9, Fedora Core 1/2/3, Smoothwall, Mandrake 7.0/10, Vecter 4, Arch 0.6, EnGuarde
Posts: 289

Original Poster
Rep: Reputation: 30
Theoretically speaking, su should be root. However, su does not have the same full access as root in some conditions.

These conditions are, running startx (some utilities can not be switched between user & su), running TELNET (try doing so and type in shutdown (utility does not exist)), etc. All rights were setup correctly.

Logically speaking, if you run "su", you are running it under a utility, which "will" have limitations. Running su on the front end, while in command line may be the only exception to having limitations.

I do not know if this is because it is scripted so for reasons of security or is a simple limitation of the su utility. I ensure you though, I can prove you very wrong with su being "COMPLETELY = root".

Trickykid, your information is most valuable. I have to thank you from my up most highest regards. I was not aware of the insecurity of TELNET. In addition, I am thankful about the information regarding sudo. I will look it up.

I still need information about how to reboot remotely. Please take the time to test the results. I have had Linux extremest in my school telling me the same thing about su and were completely baffled when I tested there theories in front of them and it did not work. I showed them my hypothesis and put it to test and the result has been absorbed into there logical thinking very quickly.

Last edited by dolvmin; 08-26-2003 at 08:15 PM.
 
Old 08-26-2003, 08:25 PM   #6
dolvmin
Member
 
Registered: Jul 2003
Location: Florida
Distribution: Red Hat 7.2/8/9, Fedora Core 1/2/3, Smoothwall, Mandrake 7.0/10, Vecter 4, Arch 0.6, EnGuarde
Posts: 289

Original Poster
Rep: Reputation: 30
Fantastic news!!! I was able to remotely reboot my computer through TELNET!

I did not know there was a reboot utility, I always used shutdown. Hangdog42, your information was exactly what I needed. I want to thank you for all your help and the help of everyone else.

Last edited by dolvmin; 08-26-2003 at 08:26 PM.
 
Old 08-26-2003, 08:31 PM   #7
dolvmin
Member
 
Registered: Jul 2003
Location: Florida
Distribution: Red Hat 7.2/8/9, Fedora Core 1/2/3, Smoothwall, Mandrake 7.0/10, Vecter 4, Arch 0.6, EnGuarde
Posts: 289

Original Poster
Rep: Reputation: 30

Scratch this question, it was dumb.

Last edited by dolvmin; 08-27-2003 at 11:07 PM.
 
  


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
Anyone got the Remote Wonder (ATI's USB remote control) to work under Linux? dezireduser Linux - Hardware 2 11-06-2005 08:47 AM
Need to remote console into RedHat Linux dmorse Linux - Security 5 07-27-2005 01:48 AM
Disable remote login shutdown/reboot student04 Linux - Security 1 03-06-2005 08:29 PM
Remote Linux (Mandrake/Redhat 9) Install Matt@Ants Linux - Newbie 1 08-12-2003 12:45 AM
remote installation with no reboot born4linux Linux - General 3 09-04-2002 10:58 PM


All times are GMT -5. The time now is 06:32 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration