LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-18-2009, 10:40 AM   #1
beairstos
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?

Thanks,
-Shawn
 
Old 10-01-2009, 08:20 AM   #2
SethsdadtheLinuxer
Member
 
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.
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:27 AM.

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