Allowing ssh access to ReadyNAS RN312

After creating a few new users on the RN312, using the web interface provided with the device, I noted that none of the users could ssh into the NAS.

Turns out the new users are created without a default shell, resulting in a successful ssh login, followed by a terminated connection. No good.

For example, a user named charlie would have something like the following entry in the /etc/passwd file. Note the final bold characters:

charlie:x:100:102:charlie@yourdomain.com:/home/charlie:/bin/false

Change this to

charlie:x:100:102:charlie@yourdomain.com:/home/charlie:/bin/bash

Charlie should now be able to ssh into the NAS. By the way, you HAVE set up ssh keys for your users, right… Way more secure than plan text passwords, and a lot more convenient…