Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am somewhat new to linux and am wanting to do a pretty basic setup with my Ubuntu-server. I want to install an FTP server (vsftp, Proftp, whatever) that I can create a user(s) and have that user have access to a folder (/data/share). The user will need to be able to read/write as well and create new folders within. I do not want them to be able to browse the rest of my server however.
This seems simple enough and yet all I can find online is how to set up a user to be locked into their user folder.
I've been helping him with this problem. We initially used VSFTP which I like for its simple configuration and security, but as far as extended features it seemed to be lacking (to do what we want to do).
We are looking at PROFTP right now but if there is a better free solution that provides less bloat and a secure setup we would greatly appreciate it.
I thought you already had locking them in a folder figured out. If they're already a user on the system, I think they'll have whatever privledges they normally might in their /home directory. All "chroot" functions are managed from vsftpd.conf
For a complete list of those functions ... $ man vsftpd.conf
K I think i got it locked down now. The FTP users are using a shared home dir and are chrooted to that directory with all the access they need.
The only problem now, is that my ftpuser i created is able to login to a shell on the server, which I DONT want them to be able to do!
I tried setting their shell to /bin/false, which killed their shell login successfully, BUT also kills their ability to login to VSFTPD! Is there a work around for this?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.