The user database, mate. It's part of the traditional /etc/passwd but that file has long since been replaced with /etc/master.passwd.I can't where this information is stored.
I looked in /etc/passwd like ChatGPT suggested but there wasn't anything there, but using HIThe user database, mate. Traditionally /etc/passwd but that file has long since been replaced with /etc/master.passwd.
I installed to be able to use mc. but have now replaced it zsh.When I was trying out chatgpt a while back, it insisted on using bash and I had to constantly correct it. It still hasn't learned the lesson that FreeBSD does not natively install bash. Is that the reason you are using bash?
As I know mc works on chsh, sh and on mine ksh too.I installed to be able to use mc. but have now replaced it zsh.
you can start also with mc -utcsh
use:
alias mc 'mc --nosubshell'
Never problem
I looked in /etc/passwd like ChatGPT suggested but there wasn't anything there, but using HIit was where you suggested.
I changed it to zsh, but forget I hadn't yet installed it.
OOPS!!
Can't login.
Under zsh I can just use mc and no need for an alias, which is what I was doing previouslytcsh
use:
alias mc 'mc --nosubshell'
Never problem
See I know, but having subshell support is very handy, and I have that now under zsh.you can start also with mc -u
Here is my file. I don't know where these values come from and haven't even heard of some of these shellschsh should check the shell you select against /etc/shells, which in turn is maintained by pkg when you install shells. So this shouldn't have happened.
Unless you edited passwd in an editor and didn't go through chsh?
/bin/sh
/bin/csh
/bin/tcsh
/usr/local/libexec/git-core/git-shell
/usr/local/bin/bash
/usr/local/bin/rbash
/usr/local/bin/zsh
/usr/local/bin/rzsh
/etc/passwd is generated on editing /etc/master.passwd with vipw(8) (or with other tools like adduser(8)) using pwd_mkdb(8) for backward compatibility.Here is my file. I don't know where these values come from and haven't even heard of some of these shells
/etc/shells :-
sh:/bin/sh /bin/csh /bin/tcsh /usr/local/libexec/git-core/git-shell /usr/local/bin/bash /usr/local/bin/rbash /usr/local/bin/zsh /usr/local/bin/rzsh
I never edit passwd.
if ( -X zsh && -f ~/.Use_zsh ) exec zsh
The reason for many is probably default OS installs where the shell has no history, no normal working function keys or no command completion and the operator just wants to do some simple things without having to repeat anything all over because of a typing error. That's a crippled environment for no technical reason. Execute a working bash on a PC beyond 386, problem solved...When I was trying out chatgpt a while back, it insisted on using bash and I had to constantly correct it. It still hasn't learned the lesson that FreeBSD does not natively install bash. Is that the reason you are using bash?