LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-23-2003, 12:22 PM   #1
cpv204
Member
 
Registered: Mar 2003
Location: Tribeca, NYC
Distribution: Slackware 9.0, Fedora Core 1
Posts: 111

Rep: Reputation: 15
environment variables and gdm problem


My problem is that the environment variables, PATH most obviously, are not being set as I think they should be. Further, I have observed some behavior I don't understand.

I boot into run level 4, which brings me to the gdm login screen. I login as a normal user, carl, and open an xterm window on the desktop. To keep matters simple, I have no .bashrc or .bash_profile or .profile in my /home/carl directory. So, shouldn't I expect my PATH variable to be as it is set in /etc/profile? Well, it's not.

So I do a whoami and I get carl.

I echo $PATH and I get a very short path (which is missing a lot of directories I'd like to have), not the path that is set in /etc/profile.

I su - carl and login.

I do a whoami and I get carl.

I echo $PATH and I get the string I would expect to see, as set in /etc/profile.

So, it seems when I login via gdm the PATH variable is getting assigned from somewhere else than /etc/profile. Any ideas where?

I know I can probably solve the problem by customizing a .bashrc in my ~ directory, but I'd like to get to the bottom of what is happening now and why.
 
Old 05-27-2003, 08:35 AM   #2
cpv204
Member
 
Registered: Mar 2003
Location: Tribeca, NYC
Distribution: Slackware 9.0, Fedora Core 1
Posts: 111

Original Poster
Rep: Reputation: 15
Any ideas?

My PS1 (prompt string) also behaves similarly, so it's not just something affecting the PATH variable.
 
  


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
Environment Variables - where do they go!?! iansoundz Linux - General 7 11-17-2005 02:27 AM
environment variables user_linux Linux - Newbie 3 06-15-2005 08:46 AM
environment variables naren Linux - Software 1 12-15-2004 06:44 AM
environment variables in c++ s3b0 Programming 6 08-27-2004 09:19 AM
when to use environment variables? mark_2811 Programming 2 02-23-2004 06:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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