Latest LQ Deal: Linux Power User Bundle
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 08-18-2008, 04:20 PM   #1
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?

Old 08-18-2008, 09:23 PM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 245Reputation: 245Reputation: 245
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
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).


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

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 > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:18 AM.

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