LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices

Reply
 
Search this Thread
Old 01-06-2006, 10:36 AM   #1
KrGAce
Member
 
Registered: Dec 2004
Location: Vermont
Distribution: Ubuntu
Posts: 58

Rep: Reputation: 15
2 FTP Setup Questions


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.


AceMan
 
Old 01-07-2006, 09:03 AM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
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.
 
Old 01-07-2006, 09:03 PM   #3
KrGAce
Member
 
Registered: Dec 2004
Location: Vermont
Distribution: Ubuntu
Posts: 58

Original Poster
Rep: Reputation: 15
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
 
Old 01-08-2006, 08:18 AM   #4
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Quote:
Originally Posted by KrGAce
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.
 
Old 01-10-2006, 08:49 AM   #5
KrGAce
Member
 
Registered: Dec 2004
Location: Vermont
Distribution: Ubuntu
Posts: 58

Original Poster
Rep: Reputation: 15
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
 
Old 01-10-2006, 03:51 PM   #6
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Quote:
Originally Posted by KrGAce
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.
 
Old 01-11-2006, 07:59 AM   #7
KrGAce
Member
 
Registered: Dec 2004
Location: Vermont
Distribution: Ubuntu
Posts: 58

Original Poster
Rep: Reputation: 15
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.


AceMan
 
Old 01-12-2006, 05:43 AM   #8
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Quote:
Originally Posted by KrGAce
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.
Their home directory is defined in the /etc/passwd file.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FTP setup - help! iansoundz Red Hat 4 07-26-2005 07:57 AM
FTP setup kbrooks Linux - Networking 3 02-08-2005 03:50 PM
FTP setup Meatball1337 Linux - Software 1 10-10-2004 12:32 PM
FTP/SSH setup questions Telexen Slackware 3 10-01-2004 04:43 AM
FTP setup cosmoh2o Linux - Networking 1 02-06-2003 03:16 AM


All times are GMT -5. The time now is 03:46 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration