How do I set the shell in Solaris/SunOS for my user only, without access to
/etc/passwd or any other
It should thereafter work both for interactive
ssh (1) and
ssh when you send commands (2).
uname -a says
SunOS ... 5.10 Generic_148889-04 i86pc i386 i86pc
Edit in response to comments and answers
There is no
I can't do
/usr/bin/passwd -e - permission denied.
The default shell is bash. I would like zsh.
I already tried to set the
SHELL environment variable manually, and start the shell manually in the
.profile file, only this doesn't work for my second case (2):
ssh user@host command will run
command in bash.
As compared to getting my preferred shell when I login, it is minor, so the workaround is certainly worth mentioning, only, my intention with this question was to get it right the right way. Because it just relates to one user, I thought it was doable without involving the SA, but now I'm less certain. (But any workaround that solves (1) and (2) is cool, for sure.)