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…

 

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s