Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 09-18-2009, 10:40 AM   #1
LQ Newbie
Registered: Jun 2008
Location: Ottawa, Ontario Canada
Posts: 4

Rep: Reputation: 0
Getting SFTP logs from a chroot jail

Hi all,

Iím trying to get SFTP logs working for a few clients we have here. Up till now we havenít had any logs for the SFTP stuff and its caused us some headaches.

My test server is CentOS 5.3 running openssh 5.1p1. The SFTP users are jailed into their home directories for obvious reasons.

Iíve enabled SFTP logging in the sshd_config file and it works fine if the user is not jailedÖ but when I jail the user all logging stops.

According to the manpage for syslogd you can use -a to specify additional sockets which is needed for the chroot environment.

So I created a new socket using mksock in /jail/dev/log and am running the syslog deamon with the Ėa /jail/dev/log option (ps Ėef confirms it).

Yet still no logs are appearing. Any suggestions as to what Iím missing?

Old 10-01-2009, 08:20 AM   #2
Registered: Jun 2007
Posts: 152

Rep: Reputation: 37
what happens if you do ln -ns /var/log/sftp to /jail/dev/log? This should make the system sftp log readable to the jailed users.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chroot jail for sftp, Solaris 10, OpenSSH_5.1p1 saskak Solaris / OpenSolaris 1 12-14-2008 09:31 PM
Chroot jail pachanga Linux - General 12 09-26-2008 05:15 AM
sftp chroot jail, not able to find lib files drolic Linux - Security 3 11-23-2005 11:57 AM
Jail and chroot rogk Linux - Security 2 10-16-2005 02:20 AM
chroot jail sftp users f1uke Linux - Security 1 07-28-2003 10:29 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:46 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration