Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TERM environment variable not set, how do i fix?

Status
Not open for further replies.

farley99

MIS
Feb 12, 2003
413
US
root@lds102 [~]# pico /etc/passwd
TERM environment variable not set.
 


edit your .bash_profile and add the export TERM=xxxx command.



----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
fyi, in Red Hat, you can use the /usr/sbin/vipw command to manually edit the /etc/passwd file. This is safer than editing it with a normal editor. Here's the description from the vipw man page...

Vipw edits the password file after setting the appropriate locks, and
does any necessary processing after the password file is unlocked. If
the password file is already locked for editing by another user, vipw
will ask you to try again later. The default editor for vipw is vi(1).



ChrisP
RHCE, LPIC-1, CCNA, CNE, MCSE, +10 others
 

Vipw edits the password file after setting the appropriate locks, and does any necessary processing after the password file is unlocked


The .bash_profile is NOT the password file (/etc/passwd)!

It resides in the home directory of the user at logon.

----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
yeah, no kidding, read the first post...

In the future, before you make a dumb statement like that again, you really should read through the *entire* thread before trying to flame someone.

ChrisP
RHCE, LPIC-1, CCNA, CNE, MCSE, +10 others
 
My apologies, you are right I should have read through the *entire* thread before posting.

----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
no problem:)


ChrisP
RHCE, LPIC-1, CCNA, CNE, MCSE, +10 others
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top