.bashrc "not working"

6 posts / 0 new
Last post
#1 Thu, 03/27/2008 - 06:24
AlexC

.bashrc "not working"

Hey,

I have customized the .bashrc file that is used for new accounts (in /etc/skel), such as changing the bash promt. This works fine when adding new users via 'adduser' however, when adding a new Virtual Server with Webmin/Virtualmin it seems that the .bashrc file is not applied to the new user.

If I SSH in as that new user, I get the default promt, running '. ~/.bashrc' updates it, however logging out and logging back in resets it.

Regards,

Alex

Thu, 03/27/2008 - 13:22
Joe
Joe's picture

You probably aren't getting the shell set to bash when creating users in Webmin/Virtualmin.

Browse to System:Users and Groups, click on Module Config and set the shell for new users to /bin/bash. You'll also want to change the shell for the existing users to bash.

--

Check out the forum guidelines!

Fri, 03/28/2008 - 01:08
AlexC

Thanks Joe, that was it =)

Fri, 03/28/2008 - 09:12
AlexC

I tell a lie, it is still creating the user with a default shell of /bin/sh

Fri, 03/28/2008 - 09:24 (Reply to #4)
Joe
Joe's picture

Hmmm...I seem to recall something about this...try moving /bin/bash to the top of the list of shells in /etc/shells. This is kinda bug-like, but now that I think of it, I believe some classes of users get the first shell in the list rather than the one specified in Users and Groups.

--

Check out the forum guidelines!

Fri, 03/28/2008 - 10:17
AlexC

Joe,

I just managed to fix it, in the main module index of Virtualmin I went to 'Custom Shells' and simple set /bin/bash as the default (it was set to /bin/sh).

Regards,

Topic locked