Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to activate Zsh installed by MacPorts

I put unsuccessfully Zsh installed by MacPorts as my login shell by setting the following path to Settings

/opt/local/bin/zsh

I put it to the Advanced options at the User accounts too. I get the following error alt text http://dl.getdropbox.com/u/175564/macportsError.png

I put the following path unsuccessfully to Settings

/opt/local/var/macports/software/zsh/4.2.7_0+mp_completion

I get the following error when I start my shell again

login: /opt/local/var/macports/software/zsh/4.2.7_0+mp_completion: Permission denied

[Process completed]

How can you activate your Zsh as a login shell?

like image 755
Léo Léopold Hertz 준영 Avatar asked Nov 25 '25 06:11

Léo Léopold Hertz 준영


1 Answers

As Norbert says, I think the answer is in /etc/shells. Mine has this:

# List of acceptable shells for chpass(1).
# Ftpd will not allow users to connect who are not using
# one of these shells.

/bin/bash
/bin/csh
/bin/ksh
/bin/sh
/bin/tcsh
/bin/zsh

Add /opt/local/bin/zsh to that list, and you should be fine. You should then be able to change the shell (individually for each user) using chsh.

like image 91
Telemachus Avatar answered Nov 26 '25 22:11

Telemachus



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!