LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-27-2008, 12:27 PM   #1
Kalevra
LQ Newbie
 
Registered: Mar 2008
Posts: 14

Rep: Reputation: 0
Unjailing certain users with Proftpd


I have a server which hosts two domains (domain.com and virtualhost.com). I currently have all of my FTP users jailed to their /home directories and would like it if I could set up a user account for the web administrator to upload the web content which is stored in /home/vhosts/domain.com and /home/vhosts/virtualhost.com. This would require the web admin to navigate outside of his jailed /home directory, preferably have the web admin dropped directly into the /home/vhosts directory.

Thanks!
 
Old 03-28-2008, 04:26 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
You can use the following:
Code:
DefaultRoot ~ !web-admins
DefaultChdir /home/vhosts web-admins
web-admins is a group which member is your web administrator
 
Old 03-28-2008, 12:05 PM   #3
Kalevra
LQ Newbie
 
Registered: Mar 2008
Posts: 14

Original Poster
Rep: Reputation: 0
bathory, thanks for the input, however, it didn't quite work for me. I did end up using this though:

DefaultRoot /home/vhosts www

Allowing the group www to default into /home/vhosts. Thanks for the starting point though!

I do have one more question that maybe someone can help me with here regarding this set up. I would like for any file uploaded to the /home/vhosts directory to automatically chown wwwrun. Is there a way to do this?

Thanks!
 
Old 03-29-2008, 02:55 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
That's the generic idea. You define a defaultroot for everyone except a group and another defaultroot or defaultchdir for that specific group.
As for your question you can try the "UserOwner" directive. I haven't use it but I think that your server must run as root in order to be able to chown the files uploaded.

Regards
 
  


Reply



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
proftpd and users foucault Linux - Server 2 11-17-2006 04:39 PM
proftpd and users emptystrings Linux - Newbie 3 11-07-2004 08:33 PM
WSFTP users to ProFTPD edellacca Linux - Enterprise 1 08-13-2004 09:50 AM
users proftpd strider17 Linux - Newbie 2 02-05-2004 06:21 PM
Authenticating users on Proftpd wallaba Linux - Newbie 4 02-17-2003 02:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:20 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration