LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-18-2003, 12:47 PM   #1
soundphan
LQ Newbie
 
Registered: Jul 2003
Posts: 2

Rep: Reputation: 0
Stupid Telnet Question


I'm stumped on this one - (RH9 is the system BTW)

I have no problem getting logged on through telnet.
However once I login, I can't seem run iptables commands or ifconfig (not even to just get a report) All I get are "Unknown Command" errors (This is as a SU so I should have permission right??!!??)

Everything works fine locally w/ iptables & ifconfig



And Yes, I know I shouldn't run telnet, I'll turn it off once my tweaking is complete


Thanks
 
Old 07-18-2003, 01:11 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
When you su run:
su -

not just:
su

This will start a new bash shell for root. The commands you ar erunning are in /sbin which is only in root's path by default.
 
Old 07-18-2003, 01:34 PM   #3
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
It looks like you might need to make some additions to root's PATH.
 
Old 07-18-2003, 03:30 PM   #4
soundphan
LQ Newbie
 
Registered: Jul 2003
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by david_ross
When you su run:
su -

not just:
su

This will start a new bash shell for root. The commands you ar erunning are in /sbin which is only in root's path by default.
Exactly the trick I was looking for, Thanks
 
Old 07-19-2003, 10:55 AM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
No problem. Why do you need to use telnet for tweaking? Just install ssh and use that instead.
 
  


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
Stupid, stupid question; I lost Klaptop. :( Surfrider Slackware 2 08-31-2005 09:12 PM
stupid question spookyct Mandriva 1 04-29-2005 01:10 PM
Stupid Dumb Stupid Question... drigz Linux - Software 3 09-23-2004 03:09 PM
Stupid telnet question KevStA Linux - Newbie 9 06-13-2002 06:31 PM
Hopefully not a stupid question qennster Programming 2 04-03-2002 12:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:54 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