Results 1 to 2 of 2
Alright so I just did a fresh format of Debian Squeeze and so far I have installed SSH, Apache2, PHP5, and ProFTP. This home server is just so I can ...
- 06-21-2011 #1Just Joined!
- Join Date
- Jan 2011
- Posts
- 3
New User .bashrc Not Executing
Alright so I just did a fresh format of Debian Squeeze and so far I have installed SSH, Apache2, PHP5, and ProFTP. This home server is just so I can mess around in web development, so it has no real significant data on it right now. Anyways, my issue...
I created a couple of Virtual Hosts with Apache2, and just for practice I gave each website it's own user. Now when I login as the new user I get a bash prompt of "$ ", and that's it. Now when I run the command "exec bash" it works perfectly fine like I want it to and get a bash prompt of "[USERNAME]:[PWD]$ ". So I have the bashrc and the profile correct, but it won't execute when I login as the users I have created.
Now on the other hand the initial user's bash executes just fine when I login with SSH. Just so I make is clear the initial user is the one created during the formatting process.
Just some facts:
- /etc/skel has the exact same bashrc and profile as the initial user.
- The new users own all files in there home directories, so it is not an ownership problem.
I have been researching around the internet and cannot seem to find the answer anywhere. I just need it to auto execute when any user logs in.
Thank You in Advanced,
NOX
- 08-23-2011 #2
Can you confirm that the users you created have bash set as their shell?
To check this, when logging in, you can type: echo $SHELL it should return soemthing like /bin/bash
If not, you'll need to set bash as your shell for said users....
where /bin/bash is the location of your bash executable.Code:usermod -s /bin/bash username
If you're unsure where this is, you can run
to find out.Code:which bash
"I am not an alcoholic, alcoholics go to meetings"
Registered Linux user = #372327


Reply With Quote
