I've been following this guide to switch my shell to zhs. However when I get to running this:
chsh -s /usr/bin/zsh root
I get the following error:
You may not change the shell for 'root'.
Is this intended to happen or am I get something wrong? Should I not be changing my root's shell?
You should log in by a root user (from the terminal):
su
orsudo su
.chsh -s /usr/bin/zsh root
.You can do that, but I would strongly advise against it: If anything goes horribly wrong, you can't log in as root anymore. Please consider that the zsh package is not installed by default, and IIRC it's also not by default in
/etc/shells
(I might be wrong there). You might get into situations where the shell that you configured for root is not available.I love zsh, but for my root account I always leave the default bash. When I need to work as root for more than a handful of commands, I simply do
and hey presto, I am root with my favourite zsh.