#1  
Old 22nd May 2012, 13:38
ondra.cz ondra.cz is offline
Junior Member
 
Join Date: May 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Question Owner of files

Hello,
I would like to change owner of .php files of all websites to only one owner to be able to access all websites throught one FTP connection and be able to update files throught subversion. But when I change userID, I get 403 Forbidden error.

How can I disable this check of userID? I understand, that this is because of security reason, but I use VPS just for personal purpose and this complicates my work.

Thanks
Reply With Quote
Sponsored Links
  #2  
Old 22nd May 2012, 14:46
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

The setup you want to use is not supported by ispconfig as its unsecure. If you want to use it anway, you will have to change the ispconfig sources.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 22nd May 2012, 15:33
ondra.cz ondra.cz is offline
Junior Member
 
Join Date: May 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you for answer. Can you please direct me where should I look for?
Reply With Quote
  #4  
Old 24th May 2012, 13:51
ondra.cz ondra.cz is offline
Junior Member
 
Join Date: May 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

And I don't think that this is a restricton of ISPconfig, but some restriction of apache/php, isn't it?
Reply With Quote
  #5  
Old 24th May 2012, 14:07
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

The restriction is not from ispconfig. but it gets applied as you uploaded data with a different user then the one that is configured for this vhost and this user is set and configured by ispconfig.

In a ispconfig setup, every website has its own user. If you wnat all sites to run under the same user, you will have to modify the ispconfig code so that ispconfig uses the user ww-data or whatever you want to use as user for all sites. the user of the site is set in the file /usr/local/ispconfig/interface/plugins/sites_web_domain_plugin.inc.php. The interesting lines are:

$system_user = $app->db->quote('web'.$page_form->id);
$system_group = $app->db->quote('client'.$client_id);

change it to something like:

$system_user = 'www-data';
$system_group = 'www-data';

The user and group name might differ for different linux distributions.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #6  
Old 24th May 2012, 16:05
ondra.cz ondra.cz is offline
Junior Member
 
Join Date: May 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for answer.

Can you please explain me, what this fix will exactly do? So far I understand, it will only update rows in DB and will have no affect to apache or files. I'm just trying to understand, how this works.
Reply With Quote
  #7  
Old 24th May 2012, 16:09
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

This code sets the user when a new site is created.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #8  
Old 24th May 2012, 16:51
ondra.cz ondra.cz is offline
Junior Member
 
Join Date: May 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok. And how to change user of existing sites?
Reply With Quote
  #9  
Old 24th May 2012, 17:12
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

You cant change the owner of existing sites without editing a lot of database records and severalconfig files manually. Better delete the sites and recreate them.

Please be aware that the modifications that you plan make your system incompatible with future ispconfig updates, so you can not install any updates without breaking your server.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #10  
Old 24th May 2012, 17:59
ondra.cz ondra.cz is offline
Junior Member
 
Join Date: May 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Thank you till for your answers, I will try it.
Reply With Quote
Reply

Bookmarks

Tags
change owner, error, forbidden, permissions, userid

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
ffmpeg Video support for ubuntu 7.10 [suphp-ispconfig] amaurib Installation/Configuration 13 16th February 2010 17:26
Allow admin to modify "ROOT" owner files plathw Installation/Configuration 1 17th November 2009 09:28
suexec allows deleting files which owner is root xerc Installation/Configuration 14 22nd October 2009 23:26
Debian 5.0 'hangs' GHz Installation/Configuration 5 1st October 2009 12:57
The system is currently updating the configuration files. warlock General 8 21st February 2009 18:15


All times are GMT +2. The time now is 06:58.


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