[lug] How to set up a private FTP account for a user?

Sean Reifschneider jafo at tummy.com
Sun Apr 2 22:57:19 MDT 2006


On Sat, Apr 01, 2006 at 07:10:40AM -0700, Bill Thoen wrote:
>ftponly , or something like that) and then copy the FTP working files and
>directories to the new user's directory, so that the only thing they could
>do was FTP. But I'm a little vague on exactly what the process was now.  

That's not how you do it anymore.  With ProFTPd, you can just set up
dedicated passwd/group files, point proftpd at it as the passwd/group files
to use, and it will take care of the rest.  It can even restrict users to
their home directories, like it's running in a chroot, etc.  You don't have
to put a bunch of shared libraries in a chroot though.

>reason I couldn't find any mention of it is because it's not there. So I
>think I'll take the easy route and just add a new user account for my
>client. That will at least get the job done.

I wouldn't, but it's your funeral.  If you're going to give them a system
account, why not just make them use SSH public keys and log in securely?
At least firewall off FTP so that they have to FTP over SSH?  I believe you
can also limit accounts in SSH to only allow SFTP, but I haven't used that.

Thanks,
Sean
-- 
 "You're thinking of Mr. Wizard."  "[Emilio Lizardo's] a top scientist,
 dumbkopf."  "So was Mr. Wizard."  -- _Buckaroo_Banzai_
Sean Reifschneider, Member of Technical Staff <jafo at tummy.com>
tummy.com, ltd. - Linux Consulting since 1995: Ask me about High Availability




More information about the LUG mailing list