So here at work, I was asked to migrate some of our services from Windows to Linux using free software, including for proxy, DNS, and FTP. I was also asked to try to avoid GUIs, so I went for CentOS 7.
After a long fight, I managed to have CentOS 7 up and running with vsftpd running. I created an admin account and everything worked like a charm.
What I'm having trouble doing is copying the directory tree I have in my actual FTP. I use said FTP to transfer files to my 30 clients. Each one has a folder numbered from 1 to 30 by customer ID and they can only access their own folder and subfolders with full permissions. These client folders are nested under a "Clients" folder which is managed by the area in charge of uploading files to each client. This area should have full access to every customer id folder. Right now it looks like this:
-FTP -Clients -01 -02 -## -30
To accomplish something similar, i created the following accounts:
adduser uploaders -d /home/clients adduser clientname01 -d /home/clients/01 adduser clientname02 -d /home/clients/02 adduser clientname## -d /home/clients/## adduser clientname30 -d /home/clients/30
And jailed them to their chroot
When I log in to the
uploadersaccount I am locked in my chroot but I can't access the numbered folders
When I log in to any of my clients' accounts I'm standing on the root directory and can access almost every folder there.
What would be the correct way to achieve what I'm trying?