I am now using the NetGear ReadyNAS RN31200 mostly for backup purposes. I have not configured RAID, and for a while I just plan to use this as a replacement for USB hard drives, which means I simply want to sync files on my main Linux machine and the ReadyNAS via rsync.
First, configure ReadyNAS for use normally, following the instruction given by the manufacturer.
Through the ReadyNAS admin interface (i.e., visit https://READYNASHOST with a browser), create a normal user (Accounts -> Users -> New User) and a group (Accounts -> Groups -> New Group). The username and group should be named similarly to the ones used on my Linux host. Look up in /etc/passwd (where each line looks like username:password:uid:gid:info:home_dir:shell for each user on the host) and /etc/group (groupname:password:gid:group_list) and take notes of uid and gid and use the same values on ReadyNAS.
Enable ssh on ReadyNAS (System -> Settings -> Services and enable SSH service).
Log in to the ReadyNAS via ssh. (It is confusing, but the admin password for the ReadyNAS admin interface is the root password for ssh.)
$ ssh root@READYNASHOST
On the NAS, see if the user and group have been properly created:
nas# cat /etc/passwd ... nas# cat /etc/group ...
In order to use rsync as a normal, non-root user, /etc/passwd needs to be edited (
vi is installed on the NAS; if another text editor is preferred, install via
apt-get), so that the normal user’s shell points to /bin/bash and not /bin/false:
After this, you should be able to ssh into the NAS as the normal user with password.
rsync is done on my main Linux machine as in:
$ rsync -av somelocalfile user@READYNASHOST:/data/someshare
in which where /data/someshare has already been created through the ReadyNAS admin interface.
Note: The ReadyNAS OS seems to be based on a Debian-like OS, so all the normal Linux configuration tips apply, e.g., setting up password-less login with RSA keys.