Hello everyone,

I'm new to this list so please forgive me if I make any errors. I am trying
to setup rssh to work on my Synology DS1512+ NAS running BusyBox v1.16.1.
My objective is to allow a user that I created (ftpuser) to be able to
login and only have access to sftp and scp.

I have my Synology bootstrapped and am using ipkg to install rssh (ipkg
install rssh). This also installs openSSH, openssl, openssh-sftp-server and
zlib. I then edit my user (ftpuser) setting in /etc/passwd and change the
ftpuser's line to the following: ftpuser:x:1042:100:FTP
User:/var/services/homes/ftpuser:/opt/bin/rssh

I then edited my /etc/ssh/sshd_config and comment out the existing line
of: Subsystem       sftp    internal-sftp -f DAEMON -u 000
and add: Subsystem      sftp    /opt/libexec/sftp-server

I also edit /opt/etc/rssh.conf and uncomment allowscp and allowsftp.
I then edit /etc/shells and add /opt/bin/rssh to the file and save it.

I then restart my NAS box and try to login via FileZilla. I want ftpuser to
only have access to /volume1/backup. I login with filezilla but instead of
going to /volume1/backup it takes me to '/' instead. So I edit
/opt/etc/rssh.conf and add the following
line: user=ftpuser:011:00011:/volume1/backup

Now I am unable to login at all. I have two questions:

1) How can I make it so that ftpuser can only access /volume1/backup?
2) Is there a way that I can use the existing SSH that is already a part of
the NAS' built-in software instead of using OpenSSH? The reason I ask is
because when I seem to use the OpenSSH package that is installed with rssh,
I no longer have the ability to toggle the SSH via the web GUI, and I am
wondering if there isn't a way to have rssh work with the existing package.

Thank you for taking the time to read this. I am grateful for any help that
you may be able to provide.


-- 
Rehan S. Alvi
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
rssh-discuss mailing list
rssh-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rssh-discuss

Reply via email to