LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Stupid Telnet Question (https://www.linuxquestions.org/questions/linux-newbie-8/stupid-telnet-question-73888/)

soundphan 07-18-2003 12:47 PM

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

david_ross 07-18-2003 01:11 PM

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.

stickman 07-18-2003 01:34 PM

It looks like you might need to make some additions to root's PATH.

soundphan 07-18-2003 03:30 PM

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:cool:

david_ross 07-19-2003 10:55 AM

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


All times are GMT -5. The time now is 07:10 PM.