[scponly] SIGPIPE when trying to connect to chrooted scponly host
Mark Trolley
marktrolley at gmail.com
Tue Apr 7 08:55:56 EDT 2009
If I run scponly or scponlyc manually it works:
# sudo scpuser /usr/local/bin/scponly -c /usr/lib/sftp-server
scponly[3061]: 3 arguments in total.
scponly[3061]: arg 0 is /usr/local/bin/scponly
scponly[3061]: arg 1 is -c
scponly[3061]: arg 2 is /usr/lib/sftp-server
scponly[3061]: opened log at LOG_AUTHPRIV, opts 0x00000029
scponly[3061]: determined USER is "scpuser" from environment
scponly[3061]: retrieved home directory of "/media/media/ftp" for user "scpuser"
scponly[3061]: setting uid to 1014
scponly[3061]: processing request: "/usr/lib/sftp-server"
scponly[3061]: Using getopt processing for cmd /usr/lib/sftp-server
(username: scpuser(1014), IP/port: no ip?!)
scponly[3061]: running: /usr/lib/sftp-server (username: scpuser(1014),
IP/port: no ip?!)
scponly[3061]: about to exec "/usr/lib/sftp-server" (username:
scpuser(1014), IP/port: no ip?!)
On Tue, Apr 7, 2009 at 8:49 AM, Mark Trolley <marktrolley at gmail.com> wrote:
> I'm going backwards here. Now I can't even get those few lines of log
> messages in auth.log that I showed you in my previous email, and I
> can't find any other logs containing anything useful. I'm extremely
> confused why it stopped altogether.
>
> Do I need to change any other files? sshd_config? I added to
> /etc/shells and that was it.
>
> I've even tried using scponly instead of scponlyc and get exactly the
> same thing:
>
> Apr 7 08:47:47 hanzy sshd[2999]: debug1: subsystem: exec() /usr/lib/sftp-server
> Apr 7 08:47:47 hanzy scponly[3000]: 3 arguments in total.
> Apr 7 08:47:47 hanzy scponly[3000]: ^Iarg 0 is scponly
> Apr 7 08:47:47 hanzy scponly[3000]: ^Iarg 1 is -c
> Apr 7 08:47:47 hanzy scponly[3000]: ^Iarg 2 is /usr/lib/sftp-server
> Apr 7 08:47:47 hanzy scponly[3000]: opened log at LOG_AUTHPRIV, opts 0x00000029
> Apr 7 08:47:47 hanzy sshd[2999]: debug1: Received SIGCHLD.
>
>
>
> On Mon, Apr 6, 2009 at 12:44 PM, Kaleb Pederson
> <kaleb.pederson at gmail.com> wrote:
>> On Mon, Apr 6, 2009 at 9:23 AM, Christopher Barry
>> <christopher.barry at qlogic.com> wrote:
>>> I've been working with logging myself a lot lately, and one thing on Debian/Ubuntu I found necessary was in the file /etc/default/syslogd add in:
>>> SYSLOGD="-a /path/to/chroot/dev/log"
>>>
>>> This will auto-create a syslog socket for you so sftp-server can write to the log.
>>
>> Yes, this is important when you want the sftp-server to do the
>> logging. It is not important, however, for scponly to log as scponly
>> attaches to the logging service before it does the chroot.
>>
>> --Kaleb
>>
>> _______________________________________________
>> scponly mailing list
>> scponly at lists.ccs.neu.edu
>> https://lists.ccs.neu.edu/bin/listinfo/scponly
>>
>
More information about the scponly
mailing list