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 03-26-2004, 03:59 PM   #1
chongluo
Member
 
Registered: Mar 2004
Location: uk
Distribution: fedora2, slackware10
Posts: 54

Rep: Reputation: 15
unable to use some command when telnet in


i boot up my comuter into shell prompt, and i'm only able to issue commands like shutdown, useradd/adduser, which are located in /sbin, /usr/sbin on the local machine

But when I telnet to that computer, and i'm not allowed to issue those command, unless with /sbin/shutdown etc....

I know if I put some code in /etc/profile or /etc/bashrc will make it work, but still don't understand why i can use it on local machines, but not when i telnet

please help,
 
Old 03-26-2004, 04:11 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
You need to add /sbin to your users path. And why might I ask that your using telnet, its very insecure. Use ssh if your going to be doing some remote administration.
 
Old 03-26-2004, 04:17 PM   #3
chongluo
Member
 
Registered: Mar 2004
Location: uk
Distribution: fedora2, slackware10
Posts: 54

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by trickykid
You need to add /sbin to your users path. And why might I ask that your using telnet, its very insecure. Use ssh if your going to be doing some remote administration.
i know i can solve it if i add /sbin in my PATH, but I can use all these commands on my local machine without adding any PATH varibales. well I use ssh as well,

my question is why it is happenning? as I can issue all commands on local machine; but cann't issue some of these commands without adding a new PATH variable when I remotely login
 
Old 03-26-2004, 10:12 PM   #4
tearinox
Member
 
Registered: Aug 2003
Location: you dont want to know
Distribution: Gentoo 2004.2, Slackware 10, Windows XP, Windows 2003 Server
Posts: 348

Rep: Reputation: 30
use ssh, its better
 
Old 03-27-2004, 12:26 AM   #5
kdepa
Member
 
Registered: Feb 2004
Posts: 73

Rep: Reputation: 15
Its probably happenning, because when you telnet in (bad idea to do, again use SSH) it doesnt read your .profile in your home directory...
 
  


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
remote command execute telnet with 1 command MPowers Linux - Networking 2 06-30-2005 07:31 AM
unable to telnet to port 25 jacquedp Linux - Newbie 4 02-22-2005 02:10 PM
Unable to allow Incoming Telnet ivanscheers Linux - Security 12 09-04-2003 10:48 PM
unable telnet to 127.0.0.1 joseph Linux - General 6 08-19-2003 02:07 AM
Unable to ping or telnet sever. vadertech Linux - General 22 12-16-2002 07:28 PM


All times are GMT -5. The time now is 11:09 AM.

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