Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Other Forums > Forum Suggestions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 8th November 2013, 13:06
shambler81 shambler81 is offline
Junior Member
 
Join Date: Nov 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Change permissions on a folder in the web

ispconfig 3
Change permissions on a folder in the web
(! is_dir ($ data ["new"] ["document_root"]. "/ web")) mkdir ($ data ["new"] ["document_root"]. '/ web', 0755, true);
On
(! is_dir ($ data ["new"] ["document_root"]. "/ web")) mkdir ($ data ["new"] ["document_root"]. '/ web', 6755, true);

In this case, the problem will disappear as root when copying files and folders are created with different rights from the owner which makes it impossible for the user to delete files without the intervention of FTP root.It would not be necessary to change the FastCGI for php-mod to change the permissions on the files exposing the www-data: www-data.

Last edited by shambler81; 8th November 2013 at 13:11.
Reply With Quote
Sponsored Links
  #2  
Old 8th November 2013, 18:03
Croydon Croydon is offline
ISPConfig Developer
 
Join Date: Jul 2007
Location: Koblenz, Germany
Posts: 927
Thanks: 16
Thanked 261 Times in 208 Posts
Default

This is not really helpful.
The setuid is ignored on directories, so your files will be owned by root:clientX and not by webX:clientX!

Compare: http://en.wikipedia.org/wiki/Setuid#...on_directories
__________________
Marius Cramer

pixcept KG
Reply With Quote
  #3  
Old 14th November 2013, 07:48
shambler81 shambler81 is offline
Junior Member
 
Join Date: Nov 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default Yes but it will work

Yes but it will work. The current version of the site may be close from editing and completely stop working.
Rights to be missed because the web user will be allowed to start the program as ping which creates a socket but not the user has no right to do that.
This proposal опробованона 3 servers and 300 sites.
There are no problems.

Last edited by shambler81; 14th November 2013 at 07:51.
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
Can't send/recieve mail. (postfix/smtps/smtpd: SSL_accept error from localhost) MON@H Rasta Installation/Configuration 9 30th April 2013 23:48
Server hangs, BUG: Bad page state in process lucani Installation/Configuration 1 6th September 2012 18:50
Backup symlink folder permissions wrong snowfly Installation/Configuration 5 5th December 2011 09:23
OpenSuse settings permissions on folder? sebasjuh Installation/Configuration 4 25th July 2011 09:32
How to install zabbix in web folder steve1084 HOWTO-Related Questions 7 31st July 2007 13:30


All times are GMT +2. The time now is 18:01.


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