Page 1 of 1

Shell access

Posted: Thu Mar 28, 2024 1:34 pm
by pv
I hadn't used shell since the switchover to zhs; how to get out of my local 'macbkpro:~ peedu2' now? Running `chsh -s /bin/zsh` locally doesn't do it.

Re: Shell access

Posted: Fri Mar 29, 2024 7:39 am
by seth.lohr
To make sure I understand you correctly, this is *not an issue on the shell access server (based on the fact that your command line prompt is "macbkpro")? I don't see you logged in there, so just making sure I understand the scope correctly.
For clarification, the prompt at the Sonic shell server looks like this:
$ whoami

Re: Shell access

Posted: Sun Mar 31, 2024 6:20 pm
by pv
Put another way: i don't remembeer what to write

macbkpro:~ peedu2$ here

to jump out to's zsh layer, for account 'pv', after which running 'chsh -s /bin/zsh' could do its job.

Re: Shell access

Posted: Mon Apr 01, 2024 6:35 am
by seth.lohr
First step is confirming what shell you're in. Please try these several methods and paste their output:

echo $SHELL

echo $0

ps -p $$

cat /etc/shells

It should as simple as typing 'sh' or 'zsh' to switch back and forth between the shells.

Re: Shell access

Posted: Tue Apr 02, 2024 7:11 am
by seth.lohr
pv, did the above work for you?

Re: Shell access

Posted: Tue Apr 02, 2024 10:15 am
by pv

macbkpro:~ peedu2$ echo $SHELL
macbkpro:~ peedu2$ echo $0
macbkpro:~ peedu2$ ps -p $$
2700 ttys000 0:00.01 -bash
macbkpro:~ peedu2$ cat /etc/shells
# List of acceptable shells for chpass(1).
# Ftpd will not allow users to connect who are not using
# one of these shells.


macbkpro:~ peedu2$


What next?

Re: Shell access

Posted: Tue Apr 02, 2024 10:23 am
by pv
whoops! I was expecting not to see local point of departure, but I just tried a 'whois' and realized I was there...

Thank you, Seth!