LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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-23-2004, 12:54 PM   #1
paranoidpenguin
LQ Newbie
 
Registered: Jun 2004
Location: London
Distribution: Mandrake 10.0
Posts: 14

Rep: Reputation: 0
Commands not available under telnet sessions?


I have recently installed Redhat. Everything is working fine except when I telnet into the box using the telnet-server most of the commands are not available. They are however available in a local terminal. Even in the telnet session when I su to root they are still not there. Any ideas why this could be? Is there a file somewhere that disables sersitive functions for example?

Thanks guys.
 
Old 09-23-2004, 01:10 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
What do you mean "unavailable"?

Do they produce error messages? Also ake sure that the binaries are located somewhere in your $PATH.
 
Old 09-23-2004, 01:26 PM   #3
paranoidpenguin
LQ Newbie
 
Registered: Jun 2004
Location: London
Distribution: Mandrake 10.0
Posts: 14

Original Poster
Rep: Reputation: 0
Like say for instance I try and run 'chkconfig', I get the following:-
bash: chkconfig: command not found

It's the same for most commands involving services and daemons. In the process of setting up Poptop and things like 'modprobe' and 'lsmod' give the same response of command not found. Things like 'rpm', 'telnet', 'ftp' etc work fine... I'm quickly becoming confused lol.
 
Old 09-23-2004, 07:15 PM   #4
bastard23
Member
 
Registered: Mar 2003
Distribution: Debian
Posts: 275

Rep: Reputation: 30
Run:
echo $PATH
to see which directories it is searching for binaries.

On some systems the /sbin and /usr/sbin (Think system binaries: /sbin/lsmod) aren't in your path. When you su to root, you may need to run "su -", as this initializes root's environment (PATH HOME and such).

To fix this, you need to look at your .profile (or .bash_profile) and .bashrc. The first get run at login (telnet) time and may not source .bashrc. One fix is to put "PATH=/sbin:/usr/sbin:$PATH" into .profile (assuming you are running bash or other bourne compatible shells).

I don't have a mandrake box here right now, so I don't know what they do. Post back if you need more pointers.

Hope this helps,
chris
 
Old 09-23-2004, 09:11 PM   #5
paranoidpenguin
LQ Newbie
 
Registered: Jun 2004
Location: London
Distribution: Mandrake 10.0
Posts: 14

Original Poster
Rep: Reputation: 0
Thats sorted it thanks... Put the 'PATH=/sbin:/usr/sbin:$PATH' into the file you said and that did it. The existing PATH was everything except the 'sbin' directories.

Thank you for your help, much appreciated!
 
  


Reply



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
Multiple Telnet Sessions rjcrews General 4 07-24-2005 04:07 PM
No. of telnet sessions zatka Linux - Networking 2 01-16-2005 02:36 AM
Logging telnet sessions Cynric Linux - General 2 08-14-2004 01:39 AM
Monitoring telnet sessions luciji Linux - Networking 6 05-22-2003 08:16 PM
telnet sessions acid_kewpie Linux - Newbie 7 07-17-2001 02:35 PM

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

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