LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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
 
LinkBack Search this Thread
Old 08-18-2008, 04:20 PM   #1
zzyzx
LQ Newbie
 
Registered: Feb 2005
Distribution: Slackware 10.1
Posts: 20

Rep: Reputation: 0
List chroot users


This may be a simple one, but I haven't been able to track down an answer anywhere. I have a Slackware box which allows remote users to log in via sftp. All users are chroot'd to their home directory.

How can I list users who are currently logged in or have logged in via sftp?

Running "who", etc just lists users logged in via ssh or locally. /var/log/utemp and /var/log/wtemp never list anyone logged in under sftp and chrooted. Any suggestions?

Thanks.
 
Old 08-18-2008, 09:23 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 194Reputation: 194
vsftpd usually logs to it's own configured log in /var/log like /var/log/vsftpd.log. Check your configuration, if it's not configured, it's probably by default logging to messages or syslog, in which you may want to change. I'm not sure of any specific commands for vsftpd but you could probably write a script to parse the logs to find out who's logged in and at what times, etc.

Edit: Didn't realize you only said sftpd and not vsftp. What ftpd daemon are you specifically running?

Last edited by trickykid; 08-18-2008 at 09:24 PM.
 
Old 08-19-2008, 10:49 AM   #3
zzyzx
LQ Newbie
 
Registered: Feb 2005
Distribution: Slackware 10.1
Posts: 20

Original Poster
Rep: Reputation: 0
Thanks for the reply. I'm running the sftp connections through ssh (sftp-server).
 
  


Reply

Tags
chroot, list, users, who


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
chroot like program for non-root users xowl Linux - Security 12 12-10-2007 06:02 AM
vsftpd chroot for users bfay Linux - Software 0 07-21-2006 09:13 AM
proftp chroot multiple users waffe Linux - General 2 11-01-2003 11:11 PM
chroot jail sftp users f1uke Linux - Security 1 07-28-2003 10:29 AM
Chroot users thecrab Linux - Security 6 03-03-2002 05:21 PM


All times are GMT -5. The time now is 06:50 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration