[scponly] rsync and bwlimit
wbr oblyr
joe at sublimation.org
Fri May 23 12:06:23 EDT 2003
ah, i see the problem. its actually the equals sign ('=') that scponly is
choking on.
you can correct this option by extending your "allowable" character set to
include the equals sign, recompile, and reinstall.
you do this by finding the ALLOWABLE define macro in scponly.h, it looks
like this:
#define ALLOWABLE "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890 ./-*\\_\'\":?()"
and change it to this:
#define ALLOWABLE "=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890 ./-*\\_\'\":?()"
then recompile...
joe
----
PGP KEY: http://www.sublimation.org/contact.html
PGP Key fingerprint = EC4B 0DA5 B4F6 BDDD 9176 55D6 3A6A 7D63 158F 22D2
On Fri, 23 May 2003, thomas polnik wrote:
> Hallo Joe,
> (Sorry, my english ist not so good, but I hope, you can understand me.
> :-) )
>
> > if i understand correctly, bwlimit is bandwidth limiting - what exactly do
> > you mean by doesnt work?
> Yes, this is correct.
>
> > Does rsync reject the option completely as
> > invalid or does the bandwidth consumption exceed the limit you specified?
> scponly reject the option, not rsync. The option bwlimit expect a number
> and scponly does not like numbers.
>
> I get follow messages:
> sender:
> thomasp at pegasus:~> rsync -an --bwlimit=500 -e ssh trafficanalyse/
> kinloop at 10.10.10.222:/home/kinloop/
> kinloop at 10.10.10.222's password:
> invalid characters in scp command!
> here:=500 . /home/kinloop/
> try using a wildcard to match this file/directory
> unexpected EOF in read_timeout
>
> receiver (/var/log/messages):
> May 23 09:38:32 troja sshd[1059]: Accepted password for kinloop from
> 10.10.10.50 port 1022
> May 23 09:38:32 troja [1062]: 3 arguments in total.
> May 23 09:38:32 troja [1062]: arg 0 is scponly
> May 23 09:38:32 troja [1062]: arg 1 is -c
> May 23 09:38:32 troja [1062]: arg 2 is rsync --server -vnlogDtpr
> --bwlimit=500 . /home/kinloop/
> May 23 09:38:32 troja [1062]: opened log at LOG_AUTHPRIV, opts
> 0x00000009
> May 23 09:38:32 troja [1062]: retrieved home directory of
> "/home/kinloop" for user "kinloop"
> May 23 09:38:32 troja [1062]: setting uid to 503
> May 23 09:38:32 troja [1062]: processing request: "rsync --server
> -vnlogDtpr --bwlimit=500 . /home/kinloop/"
> May 23 09:38:32 troja [1062]: bad request: rsync --server -vnlogDtpr
> --bwlimit=500 . /home/kinloop/ [username: kinloop(503), IP/port:
> 10.10.10.50 1022 22]
>
> > have you tested that bwlimit works when you use rsync over a regular
> > shell?
> Yes, i did it.
> - rsync with the option bwlimit and /bin/bash as shell works fine.
> - rsync without the option bwlimit and /usr/local/bin/scponly as shell
> works fine.
>
> Regards,
> thomas polnik
> _______________________________________________
> scponly mailing list
> scponly at lists.ccs.neu.edu
> https://lists.ccs.neu.edu/bin/listinfo/scponly
>
More information about the scponly
mailing list