[scponly] rsync with scponly on CentOS

GADOT Frank Frank.Gadot at alcatel-lucent.com
Wed Oct 22 13:50:25 EDT 2008


Hi list,

 

I was looking this morning for an application where a user could rsync
documents, without having a shell on my box. I found scponly. I looked
around, and found that rsync is supposed to work with it. I had some
issues that were discussed previously in the list, but I could not find
mine. I'd like to know if someone can give me some light here.

 

I installed scponly on CentOS 5.2

I gave the shell /usr/bin/scponly to my user

 

The user cannot SSH to my box, great. But I have some errors with rsync:

 

 

root at galaxy:~> rsync minicom.log eduardo at localhost:

eduardo at localhost's password: 

rsync: connection unexpectedly closed (0 bytes received so far) [sender]

rsync error: error in rsync protocol data stream (code 12) at io.c(632)
[sender=3.0.4]

root at galaxy:~>

 

 

On the logs, I have this:

Oct 22 10:49:40 galaxy sshd[28235]: Accepted password for eduardo from
127.0.0.1 port 41179 ssh2

Oct 22 10:49:40 galaxy sshd[28235]: pam_unix(sshd:session): session
opened for user eduardo by (uid=0)

Oct 22 10:49:40 galaxy scponly[28240]: option e is not permitted for use
with /usr/bin/rsync (arg was .s)(username: eduardo(502), IP/port:
127.0.0.1 41179 22))

Oct 22 10:49:40 galaxy scponly[28240]: requested command (/usr/bin/rsync
--server -e.s .) tried to use disallowed argument (username:
eduardo(502), IP/port: 127.0.0.1 41179 22))

Oct 22 10:49:40 galaxy sshd[28235]: pam_unix(sshd:session): session
closed for user Eduardo

 

 

Any work around ? 

Thank you guys

-------------- next part --------------
HTML attachment scrubbed and removed


More information about the scponly mailing list