Is there a way to edit a .profile file that would let a user have bash as their login shell?
We tried adding:
exec /bin/bash --login
to the .profile, but this produced an endless loop and we could not login using that account.
Thanks!
Aaron
Is there a way to edit a .profile file that would let a user have bash as their login shell?
We tried adding:
exec /bin/bash --login
to the .profile, but this produced an endless loop and we could not login using that account.
Thanks!
Aaron
use the usermod command to modify the user login shell like this
# usermod -s /bin/bash
which usually changes the usr's login shell and set-up the new .bashrc profile for the new login shell
Thanks! So put that in the .profile statement, without the "#" sign in front? Or is that needed?
Don't put that in the .profile file. Just run that command once as the user. The '#' character is just the command prompt, you don't actually type that character in.
Oh, ok, I was hoping to have something to put in the profile so we could avoid running that command everytime. 
I'm not sure I understand you. You only have to run it once.
And then it remembers to use bash as the shell everytime you login? I guess maybe I'm confused, too. Looking for something this user can put in their .profile statement so they will have bash as their shell everytime they login.
Yes, it remebers to use the bash shell every time, so you only have to run the command once.
Sweet, thanks a lot!