Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

SSH with Custom login shell

Dear experts,

I want to open the SSH session with custom login shell.In other words ,when the user logs in the SSH ,he should see the custom shell not the default shell,sh.I tried setting the shell for user account and found that if I set the user to custom shell ,SSH does not permit the user to login and I get access denied message.Can you help with this?I am using the dropbear SSH.

regards,

rocker

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Edit /etc/passwd and change default shell of user.

    i.e.

    root:CriptPasswd:0:0:root:/:/bin/sh

    change to:

    root:CriptPasswd:0:0:root:/:/bin/SHELL

    The shell can be a shellscript!