The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > AIX
Google UNIX.COM


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Hosts.allow and hosts.deny huddlestonsnk UNIX for Dummies Questions & Answers 1 10-18-2006 08:34 AM
etc/hosts or something else?? amon IP Networking 5 02-20-2006 01:05 PM
etc/hosts amon Security 1 01-24-2006 02:55 AM
hosts.allow & hosts.deny Sorrento UNIX for Dummies Questions & Answers 2 08-18-2005 06:25 PM
/etc/hosts tamemi UNIX for Dummies Questions & Answers 2 04-04-2003 01:42 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #8  
Old 02-13-2007
DukeNuke2's Avatar
Soulman
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 1,487
you don't have the basic directorys for the unix programs in your path. something like this:
/usr/sbin:/usr/bin:/opt/bin:/usr/local/bin

but i don't know what the other problem is. maybe the path to vi is not correct?!? i'm on solaris and don't know aix...
Reply With Quote
Forum Sponsor
  #9  
Old 02-13-2007
Registered User
 

Join Date: Feb 2007
Posts: 41
Because it's a ssh connection you have a massively restricted choice of options to use, but cheers for the help anyway Duke
Reply With Quote
  #10  
Old 02-13-2007
DukeNuke2's Avatar
Soulman
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 1,487
you can set the path on your own! try this:

PATH=${PATH}:/usr/sbin:/usr/bin:/opt/bin:/usr/local/bin
export PATH

vi /etc/hosts
Reply With Quote
  #11  
Old 02-13-2007
Registered User
 

Join Date: Feb 2007
Posts: 41
Duke, I got the following error, do I need to try it a different way?

hscroot@ehchmc01:~> PATH=$PATH:/usr/sbin:/usr/bin:/opt/bin:/usr/local/bin
-bash: PATH: readonly variable
Reply With Quote
  #12  
Old 02-13-2007
Registered User
 

Join Date: May 2006
Location: England
Posts: 265
Why do you need to change the /etc/hosts file on the HMC anyway?
Reply With Quote
  #13  
Old 02-13-2007
Registered User
 

Join Date: Feb 2007
Posts: 41
Quote:
Originally Posted by johnf
Why do you need to change the /etc/hosts file on the HMC anyway?
I need to add in entries for our managed servers on it.
Reply With Quote
  #14  
Old 02-13-2007
DukeNuke2's Avatar
Soulman
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 1,487
seems like the shell and the user is restricted... so you have to get "root" rights to do the job!
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 07:01 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0