LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 02-16-2007, 05:34 PM   #1
mattn
LQ Newbie
 
Registered: Dec 2003
Location: New Haven
Distribution: Ubuntu 8.04
Posts: 11

Rep: Reputation: 0
$HOME environmental variable missing a /


Hi:

Some security upgrades were recently done to our lab's linux machine (not by me personally), and now the $HOME environmental variable is missing the first "/". Consequently, a lot of programs can't locate needed files. bash can't even find my .bashrc file.

Do you know how to fix how $HOME is set by default?

Thanks,

Matt
 
Old 02-16-2007, 07:09 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Try "getent passwd username", check the sixth field.
 
Old 02-16-2007, 07:12 PM   #3
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

AFAIK, the value of "$HOME" for any user should reflect exactly what's in "/etc/password" for that user.

So please and make sure the /etc/passwd entry has a leading "/".

If it does, then please post back additional details about exactly what version of Linux this is, what patches might have changed the behavior, and anything else you think might be relevant.

'Hope that helps .. PSM

ADDENDUM:
it looks like "unspawn" and I were typing essentially the same response at the same time :-)

Last edited by paulsm4; 02-16-2007 at 07:14 PM.
 
Old 02-17-2007, 07:31 AM   #4
mattn
LQ Newbie
 
Registered: Dec 2003
Location: New Haven
Distribution: Ubuntu 8.04
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks a lot unSpawn and paulsm4! Problem solved.
 
  


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
Is it possible to locate where an environmental variable is exported from? laggerific Linux - Software 2 12-07-2006 12:55 PM
how PKG_CONFIG_PATH environmental variable set these package hitlar Linux - Software 1 06-20-2006 10:46 PM
Setting an environmental variable maevious Linux - Newbie 6 11-24-2005 04:15 PM
nohup tcsh (environmental variable) podollb Linux - Software 0 05-17-2004 05:44 PM
how to get environmental variable from JAVA program edreddy Programming 2 07-29-2002 10:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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