LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices

Reply
 
LinkBack Search this Thread
Old 01-13-2009, 05:51 PM   #1
spaceman spiff
LQ Newbie
 
Registered: Jul 2007
Posts: 3

Rep: Reputation: 0
bash_profile file doesn't run in home directory


I have installed Slackware 12.2 and have found that my ~/.bash_profile file doesn't run or even work when I run it manually. .bash_profile runs just fine in root but not in any user space I create and my home directory is a symbolic link to another partition an that .bash_profile file runs just fine with 12.1.

BASH itself seem to run and the individual commands work if I copy and paste them into a shell and run them that way but when I log on to my user account .bash_profile doesn't run.

Also, /etc/kde/kdm/Xsession has been changed and Patrick left the original named Xsession.orig which doesn't cause .bash_profile to run ether.
 
Old 01-13-2009, 06:19 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 13.37
Posts: 4,082

Rep: Reputation: 134Reputation: 134
I don't know how you're creating the users or starting the shell, so these are guesses:

Have you checked that the users' shell is /bin/bash?

Also, are you logging in at a console, so the shell is being started as a login shell? If your default run level is 4 and you sign in at a gui, most of the terminals start non-login shells so ~/.bash_profile won't be run.
 
Old 01-13-2009, 06:30 PM   #3
spaceman spiff
LQ Newbie
 
Registered: Jul 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Yep, that's it. I feel so stupid.


Thanks
 
Old 01-13-2009, 11:59 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 13.37
Posts: 4,082

Rep: Reputation: 134Reputation: 134
I've done plenty worse than that
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
fopen a file in home directory Four Programming 2 04-07-2007 04:52 PM
How to protect a file/directory in your home login directory (RH Linux) jitsenho Linux - Security 9 07-03-2006 11:08 PM
how to locate file in home directory learnfast Linux - Newbie 3 03-14-2005 07:15 AM
Samba with ADS as a home directory file server? xwoz Linux - Software 0 08-16-2004 07:50 AM
.xession-errors file in my home directory drxsmurf Linux - Software 3 05-06-2004 09:01 PM


All times are GMT -5. The time now is 07:43 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration