cannot login after switching user to /ffp/bin/bash

121 views
Skip to first unread message

Thomas Moersch

unread,
Dec 4, 2013, 1:05:54 PM12/4/13
to al...@googlegroups.com

I created a new user and was able to ssh into the server.
After installing bash and switching the user's default shell to /ffp/bin/bash in /etc/passwd the user was no longer able to authenticate with ssh until I switched him back to /bin/sh.
Any ideas?
Maybe I have to create a soft link in /bin?

João Cardoso

unread,
Dec 4, 2013, 7:44:03 PM12/4/13
to al...@googlegroups.com


On Wednesday, December 4, 2013 6:05:54 PM UTC, Thomas Moersch wrote:

I created a new user and was able to ssh into the server.
After installing bash and switching the user's default shell to /ffp/bin/bash in /etc/passwd the user was no longer able to authenticate with ssh

Have you watched the System Log?:

Dec  5 00:36:44 nas authpriv.warn dropbear[3239]: User 'jcard' has invalid shell, rejected

You have to create a '/etc/shells' file with the full path of allowed shells, such as

# cat /etc/shells 
/bin/sh
/usr/bin/bash

# ls -l /etc/shells 
-rw-r--r--    1 root     root            22 Dec  5 00:37 /etc/shells

As you have Alt-F packages installed and directory '/Alt-F/etc' exists, the create file will survive reboots

Thomas Moersch

unread,
Dec 4, 2013, 7:58:36 PM12/4/13
to al...@googlegroups.com
Thanks, João.  I was looking for a shells file and couldn't find one.
It never occurred to me to just create one!
LOL
Thomas


--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/alt-f/1d4575b5-e2c0-4c2d-92dd-eab61de2df6a%40googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages