OpenSSH
[Top] [All Lists]

Re: sftp logging

To: David Leonard <d@adaptive-enterprises.com.au>
Subject: Re: sftp logging
From: Darren Tucker <dtucker@zip.com.au>
Date: Mon, 19 Feb 2007 20:43:10 +1100
Cc: Michael Prochaska <michael@prochas.net>, openssh-unix-dev@mindrot.org
Delivered-to: sp-com-lists@consult.net
Delivered-to: openssh-unix-dev-list1@securepoint.com
Delivered-to: openssh-unix-dev-tmda@mindrot.org
Delivered-to: openssh-unix-dev@mindrot.org
In-reply-to: <45D96D2F.5010907@adaptive-enterprises.com.au>
List-archive: <http://lists.mindrot.org/pipermail/openssh-unix-dev>
List-help: <mailto:openssh-unix-dev-request@mindrot.org?subject=help>
List-id: Development of portable OpenSSH <openssh-unix-dev.mindrot.org>
List-post: <mailto:openssh-unix-dev@mindrot.org>
List-subscribe: <http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev>, <mailto:openssh-unix-dev-request@mindrot.org?subject=subscribe>
List-unsubscribe: <http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev>, <mailto:openssh-unix-dev-request@mindrot.org?subject=unsubscribe>
References: <45D9573D.4060507@prochas.net> <45D9667E.9080707@zip.com.au> <45D96D2F.5010907@adaptive-enterprises.com.au>
Reply-to: dtucker@zip.com.au
Sender: openssh-unix-dev-bounces+openssh-unix-dev-list1=securepoint.com@mindrot.org
User-agent: Mutt/1.5.11
On Mon, Feb 19, 2007 at 07:26:07PM +1000, David Leonard wrote:
> note that users can bypass your sftp-server log levels. e.g. by 
> supplying the -s option to sftp with the full path to the sftp-server 
> executable. However, they can supply their own logging levels,  which 
> can be handy, eg
> 
>   $ sftp -s '/usr/libexec/sftp-server -lDEBUG -fDAEMON' remote-host

That's a good point.  If it matters and they only need sftp access you
can use something like

Match Group sftpusers
        ForceCommand /usr/libexec/sftp-server -l [...]

Once a user has shell access they can transfer files using pretty
much anything (tar, cat, grep, or anything they can install if they
have a writable directory).

-- 
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev

<Prev in Thread] Current Thread [Next in Thread>