Linux - EnterpriseThis forum is for all items relating to using Linux in the Enterprise.
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.
Thanks in advance for any and all help on this topic. I have set up an FTP server that works pretty well via PureFTP. I want to do the following and have been unable to find any information on how to.
1) limit users public_html folder size. Basically users(teachers) will put their web pages here and I want to limit how much they can store.
2) When they log into the server, I want the default directory to be public_html.
Is there a way I can do both of these. Thanks again in advance.
1) limit users public_html folder size. Basically users(teachers) will put their web pages here and I want to limit how much they can store.
The built-in quota in Linux should do this with no problems.
2) When they log into the server, I want the default directory to be public_html.
Your looking for chroot or with most FTP servers, they have built-in functionality to jail users to particular directories. I know vsftpd has this, not sure about PureFTP though, doesn't hurt to check the docs for it though.
So am I looking for this (chroot) in some sort of config file for PureFTP? Is there an easier method of FTPing?
Thanks for your info.
AceMan
Linux itself has builtin chroot, but some FTP daemons have it this as an option in their configs. It might not already be in there but an option you have to add, look over PureFTP's docs and manuals to find out, if they don't have it, just jail the users using chroot within the OS itself.
The only thing I could find in the PureFTP config was this..
#Chroot users to their home directory
CHrooteveryone yes
So basically it was a yes/no question. Having a hard time finding a solution to this, there isn't much in the config file. Anyone have an easier alternative to PureFTP? I am using SUSE Linux Enterprise Server, but I am sure most FTP progs will work. Thanks again for any info.
The only thing I could find in the PureFTP config was this..
#Chroot users to their home directory
CHrooteveryone yes
So basically it was a yes/no question. Having a hard time finding a solution to this, there isn't much in the config file. Anyone have an easier alternative to PureFTP? I am using SUSE Linux Enterprise Server, but I am sure most FTP progs will work. Thanks again for any info.
AceMan
That would jail each user to their $HOME directory, so that is most likely what your looking for.
True, but how do I change the directory to "jail" them to. As you can see from above the only thing it says in the config is
#Chroot users to their home directory
CHRootEveryone yes
What text would I put to make the public_html the home directory? That's literally all it says in the config in relation to CHRoot.
I am also suddenly having another problem. Users are uploading their files and somehow during the transfer it is making the .hmtl files "read only" for the owner only. I have to go in and make them read only for the users, and then they show up in a web page. Otherwise it reads "Access Denied". I again appreciate any and all help in advance.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.