LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-19-2006, 08:19 PM   #1
dlublink
Member
 
Registered: Oct 2004
Location: Canada
Distribution: Ubuntu
Posts: 330

Rep: Reputation: 30
.bash[rc|_profile] not working


Whenever I log into my server, I expect that .bash_profile in my home directory should execute. For some reason it doesn't. Basically all of my cool console settings are in .bashrc and .bash_profile is supposed to execute .bashrc.

It doesn't.

david@vserver-lublink ~ $ ls -lha
total 45M
drwxr-sr-x 6 david users 4.0K 2006-12-19 21:11 .
drwxrwsr-x 7 root staff 59 2006-12-04 11:46 ..
-rw------- 1 david users 5.3K 2006-12-19 21:12 .bash_history
-rwxr-xr-x 1 david users 236 2006-12-19 21:07 .bash_profile
-rwxr--r-- 1 david users 2.0K 2006-12-19 21:02 .bashrc

I have done some reserach, and I cannot seem to find why it's not executing. My user has execute permission on both scripts.

When I connect using ssh to the server, it doesn't execute. I copied the files into ~root/ and enter root using, 'su'. It executes for root, but not for me. Did I miss something here?

Any ideas?

Thanks,

David

Last edited by dlublink; 12-19-2006 at 08:21 PM.
 
Old 12-19-2006, 08:24 PM   #2
dlublink
Member
 
Registered: Oct 2004
Location: Canada
Distribution: Ubuntu
Posts: 330

Original Poster
Rep: Reputation: 30
Solved!

turns out in /etc/passwd I had:

david:x:1002:100::/home/david:

instead of

david:x:1002:100::/home/david:/bin/bash


Not sure how that happened, but it works now.

Thanks,

David
 
  


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
Many times Bash is not working why? sathyguy Linux - Newbie 6 10-11-2005 01:15 PM
bash script not working :'( aesahaettr Linux - Software 5 05-12-2004 01:08 AM
Bash script not working AMMullan Linux - General 2 09-28-2003 07:10 PM
bash and kde not working macshark Linux - Newbie 1 12-23-2002 01:12 PM
bash shell not working? magyartoth Linux - General 4 04-09-2002 08:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:46 AM.

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