- Oct 10, 1999
- 9,558
- 0
- 76
I'm still playing around with the new SuSE installation. I forgot to bring the manual to work so I've been fooling around with it from here doing some of the more basic stuff, or so I thought.
I haven't reached the point that it matters all that much to me if I totally hose the installation; I may reinstall tonight anyway in order to adjust partition sizes a bit more closely to what actually happened during installation.
Anyway, the default shell for new users is Bash, while I prefer the c shell as it's what I'm used to. So, I used the usermod -s csh evermore command as root to change the shell for my login. This worked fine. But then when I went to root again to do something else, I noticed that the login had changed slightly. I wasn't getting the same type of command prompt as before. I realize now that it was because I was coming from csh into bash when I su'd. So I changed the root shell to csh, then logged out and back in, and now I can't get root access. When I log in, I get the error "su: cannot run csh: No such file or directory".
So, this seems to me to indicate that the path isn't set so that logging in as root with a c shell can locate the csh shell binary, so I can't log in. Fixing it I presume would just be a matter of letting the root login path point to csh properly, or even just putting root back to using bash for now.
But how can I do that, if at all? My user login doesn't have any higher level access yet, just a normal user. Will I be able to edit whatever login files are used by root to change the shell used? If I can, where are they?
If nothing else, I'll just reinstall tonight. Now that I know what I'm doing it shouldn't take as long.
I haven't reached the point that it matters all that much to me if I totally hose the installation; I may reinstall tonight anyway in order to adjust partition sizes a bit more closely to what actually happened during installation.
Anyway, the default shell for new users is Bash, while I prefer the c shell as it's what I'm used to. So, I used the usermod -s csh evermore command as root to change the shell for my login. This worked fine. But then when I went to root again to do something else, I noticed that the login had changed slightly. I wasn't getting the same type of command prompt as before. I realize now that it was because I was coming from csh into bash when I su'd. So I changed the root shell to csh, then logged out and back in, and now I can't get root access. When I log in, I get the error "su: cannot run csh: No such file or directory".
So, this seems to me to indicate that the path isn't set so that logging in as root with a c shell can locate the csh shell binary, so I can't log in. Fixing it I presume would just be a matter of letting the root login path point to csh properly, or even just putting root back to using bash for now.
But how can I do that, if at all? My user login doesn't have any higher level access yet, just a normal user. Will I be able to edit whatever login files are used by root to change the shell used? If I can, where are they?
If nothing else, I'll just reinstall tonight. Now that I know what I'm doing it shouldn't take as long.