Hi all,
I did something stupid (part of the fun):
I was logged in as root and wanted to install bash as default shell, so I
used pkg_add to install the static package and afterwards I edited
/etc/shells.Now, when I logged out and back in as root, I still had csh as
shell.
So I tried doing 'usermod -s bash root' which returned that bash was not a
valid shell, so I said oops and did 'usermod -s csh root' which said csh was
not a valid shell. I wanted to log out and back in to see if the csh shell
was still ok, so I tried...
when logging in as root, the console just says 'login : CSH : No such file
or directory' and it throws me right back to the login prompt (and I began
feeling suspicious). Luckily I had another account in the wheel group, so I
logged in using that and I tried 'su' which returned 'su : CSH : No such
file or directory'. So I wanted to be smart and I tried 'sudo usermod -s
root' (which gave a funny message) and entered the root password (didn't
work, gave another funny message), tried the user password, which gave 'user
is not in the sudoers file'. So I did 'vi /etc/sudoers' and noticed that it
shouldn't be edited manual... I can't access /root either to put or modify a
shell
profile in there.
Now, I'm out of options... Any suggestions? All are welcome!
Thanks!
Sincerely,