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?
Because most online script resources are bash and many BSD people use it too? I personally would just mention a different shell in a prompt to make that clear anyway. Kind of a crucial keyword like in a search engine.MG No. Chatgpt just thinks FreeBSD uses bash by default
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.
Again, many does not equal most and that would hold it up as standard usage. Many people don't use bash, too. I'd even bet most BSD people use something else--especially sh. No one at my company ever used bash and neither did I. When I correct chatgpt it even apologizes for the error.Because most online script resources are bash and many BSD people use it too?
It was SirDice who told me preferable to switch to sh for root and user account. I liked this change. But when i need to write a script i use zsh , this not for compatibility , but for functionality , like even associative arrays.
For me, bash is installed as BUILD_ and / or RUN_DEPENDS of something.I still think that bash is the most popular on FreeBSD for non-root accounts.