Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 6th December 2006, 18:26
reinier reinier is offline
Junior Member
 
Join Date: Nov 2006
Posts: 19
Thanks: 2
Thanked 3 Times in 2 Posts
Default root has to chown-ing files before you can use them

Hi,

i noticed in the Joomla! HowTo that root needs to chown the Joomla! files to be owned by the www:data group before a customer can use them properly.

This works, technically.

But if you sell a hosting package with PHP & FTP, i guess most customers would expect to be able to upload their applications (cms, weblogs, whatever), without having to call the admin to ask them to chown their files. (and the admin does not want all the calls.)

What would be your ideas on a more pleasant, but still secure configuration for this?

reinier
Reply With Quote
Sponsored Links
  #2  
Old 7th December 2006, 10:42
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,788
Thanks: 840
Thanked 5,612 Times in 4,423 Posts
Default

If you install suPHP, the chowning is not nescessary. Or the client has to set global write permissions on the directory where joomly wants to write to.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 7th December 2006, 13:54
reinier reinier is offline
Junior Member
 
Join Date: Nov 2006
Posts: 19
Thanks: 2
Thanked 3 Times in 2 Posts
Default

I looked a bit at the settings of my hosting provider (which have been very comfortable for me in the last 4 years)

When open an FTP session and create a new file, the user of that file is my account (so for a ISPConfig setup, that would be something like web1_admin ), but the group is www-data. The chmod values are 664.

If I upload a file over the web, both the user as the group are www-data.

The user is not a member of the www-data group.

These defaults make the trick work. The only thing that happens is that when a file is uploaded through the web, you need to set the access-rights to that file to be writeable by everyone using the web, too, in order to be able to change the file over FTP. So be it.

My knowledge stops here.

How can I force my FTP server to set the ownership of newly ftp´d files to this?

user: the ftp-user
group: www-data
chmod: 664

Reinier
Reply With Quote
  #4  
Old 7th December 2006, 17:04
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
 
Default

If you want a chmod 664, you need to set Umask 002 in your ProFTPd settings.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
monit howto Jamesk5 HOWTO-Related Questions 11 5th August 2008 16:10
Subdomains through ISPConfig for different purposes wustl_2008 Tips/Tricks/Mods 31 25th October 2007 22:45
VMWare install on Ubuntu problem with the IP velonis HOWTO-Related Questions 10 21st September 2006 15:19
Apache - Virtual hosts - ISPConfig Hans Server Operation 8 23rd April 2006 17:29
cannot connect to ispconfig guidovanh Installation/Configuration 22 3rd March 2006 20:52


All times are GMT +2. The time now is 22:53.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.