Can you have virtual users using an SFTP server?
Asked Answered
C

4

8

I've had a FTP server (Mac OS X, but not the server version) set up for a while where the users are virtual, i.e. they are not actual user accounts in the server's OS, but accounts handled by the FTP server software -- to the OS they all look like the ftp user account. I'd like to retire the FTP server software and go SFTP instead.

Is there a way to set up SFTP/SSH so that I can create virtual users and at the same time sandbox them?

The reason I want virtual users is because I add and remove accounts from time to time, and doing that with proper user accounts tend to get messy, and I don't know of a good way to sandbox them. There's always some files left and each user has their own user directory (with a lot of files only relevant if they would actually log on to the machine when sitting in front of it), which is quarantined when the account is removed, so you have to remove it by hand yourself, and so on.

Copier answered 2/9, 2008 at 9:56 Comment(0)
O
6

The usual generic Unix answer to this is 'PAM'. If you want plain old OpenSSH SSHD to handle your SFTP, you need something plugged in to SSHD's PAM stack (/etc/pam.d/sshd) that does what you need and leaves out what you don't need. This might be a general-purpose directory server (probably LDAP) that maps all your virtual users to one home directory and gives them a restricted or scponly kind of shell.

If you want to look at FTP servers that can also do FTP-ssl (which is not the same as SFTP), good ftp servers like Pure-ftpd or vsftp will do that. FTP-ssl servers have simpler virtual user support.

http://www.bsdguides.org/guides/freebsd/networking/pure-ftpd_virtual_users.php

Orchitis answered 2/9, 2008 at 10:33 Comment(0)
H
0

If you're open to commercial products, VShell Server from Van Dyke Software is available on Unix/Linux/Windows, supports virtual users (multiple backends) with SSH and SFTP protocols:

VShell Server

Hurst answered 5/12, 2010 at 1:20 Comment(0)
A
0

JSCAPE SFTP Server is a commercial, cross-platform server that does what you want.

http://www.jscape.com/

I know, sounds like I work for them, but I don't :)

Ardisardisj answered 16/2, 2011 at 15:58 Comment(0)
A
0

There is sftpgo which supports virtual users and much more.

Afternoons answered 16/9, 2022 at 10:6 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.