Changing file and folder permission?

Discussion regarding Joomla! security issues.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Security Checklist
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
User avatar
sviftrup
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Fri Sep 02, 2005 11:40 am
Location: Denmark
Contact:

Changing file and folder permission?

Post by sviftrup » Sun Sep 18, 2005 10:09 pm

When mambo/joomla creates or edits files and folders it changes ownership of the files to its own. That way I cant delete/change any of those files and folders when i use ftp programs unless i set permissions to 777 which I dont like at all.

Is there any way i can change ownership so ftp programs can do their thing?

thanks in advance.
Last edited by sviftrup on Mon Sep 19, 2005 8:10 am, edited 1 time in total.
SV Consult
- Webprogrammør

User avatar
joomlahut
Joomla! Intern
Joomla! Intern
Posts: 85
Joined: Wed Aug 17, 2005 10:11 pm
Contact:

Re: Changing file and folder permission?

Post by joomlahut » Tue Sep 20, 2005 12:49 am

So far there's no resolution to this problem in Mambo, you'll have to ask you host to change the files ownership to your username or run phpsuexec/suexec for apache to create files and folders as user not as apache user.

Actually this should be added to the wishlist as a new feature similar to File/Directory Permissions in global configuration.
Michael Morris - BuyHTTP Internet Services
www.demoplaza.com : Flash Tutorials For Joomla
www.buyhttp.com : Joomla Hosting Specialists
Free Joomla Professional Installation + Free Joomla Template

User avatar
Websmurf
Joomla! Hero
Joomla! Hero
Posts: 2230
Joined: Fri Aug 19, 2005 2:23 pm
Location: The Netherlands
Contact:

Re: Changing file and folder permission?

Post by Websmurf » Tue Sep 20, 2005 9:42 am

keep in mind that suexec will have large impact on the performance of your server. Especially with large sites, this will cause problems.
Adam van Dongen - Developer

- Blocklist, ODT Indexer, EasyFAQ, Easy Guestbook, Easy Gallery, YaNC & Redirect -
http://www.joomla-addons.org - http://www.bandhosting.nl

User avatar
joomlahut
Joomla! Intern
Joomla! Intern
Posts: 85
Joined: Wed Aug 17, 2005 10:11 pm
Contact:

Re: Changing file and folder permission?

Post by joomlahut » Tue Sep 20, 2005 5:16 pm

phpsuexec/suexec are installed on the server hosting mambohut.com and I haven’t noticed any related performance issues
Michael Morris - BuyHTTP Internet Services
www.demoplaza.com : Flash Tutorials For Joomla
www.buyhttp.com : Joomla Hosting Specialists
Free Joomla Professional Installation + Free Joomla Template

User avatar
bulldog
Joomla! Intern
Joomla! Intern
Posts: 54
Joined: Mon Aug 29, 2005 4:25 pm

Re: Changing file and folder permission?

Post by bulldog » Thu Sep 29, 2005 5:02 pm

mambohut wrote: So far there's no resolution to this problem in Mambo, you'll have to ask you host to change the files ownership to your username or run phpsuexec/suexec for apache to create files and folders as user not as apache user.

Actually this should be added to the wishlist as a new feature similar to File/Directory Permissions in global configuration.
Ha!  Actually submitted this today as a feature request before reading this post.  :)
Bulldog

User avatar
Vince
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 143
Joined: Sun Aug 21, 2005 11:41 pm
Location: UK
Contact:

Re: Changing file and folder permission?

Post by Vince » Mon Oct 03, 2005 12:23 am

mambohut wrote: phpsuexec/suexec are installed on the server hosting mambohut.com and I haven’t noticed any related performance issues
As a general rule, running PHP as an Apache module will be faster as the runtime is loaded into memory. However, if you're doing a lot of cgi-based access the phpsuexec may stay loaded in memory anyway, but does use extra resources to run as a cgi module.

The other difference is with webserver permissions. Having PHP as a cgi (phpsuexec) will run under the user's own account. Yes, this means users can more easily manage files as they are 'owned' by them, but it also does carry a risk that websites/personal files are more 'open to exploitation' than under a normal mod_php setup, since the php cgi application has read/write privilages instead of just read-only privileges.

- Vince
www.hostbaron.com - low price Joomla starter packages.

www.SpanishVilla.com - Buy, rent or sell a Spanish property.

User avatar
dsmflash
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 160
Joined: Sat Nov 15, 2008 5:24 am

Re: Changing file and folder permission?

Post by dsmflash » Sat Nov 14, 2009 7:50 am

Vince wrote:
mambohut wrote: phpsuexec/suexec are installed on the server hosting mambohut.com and I haven’t noticed any related performance issues
As a general rule, running PHP as an Apache module will be faster as the runtime is loaded into memory. However, if you're doing a lot of cgi-based access the phpsuexec may stay loaded in memory anyway, but does use extra resources to run as a cgi module.

The other difference is with webserver permissions. Having PHP as a cgi (phpsuexec) will run under the user's own account. Yes, this means users can more easily manage files as they are 'owned' by them, but it also does carry a risk that websites/personal files are more 'open to exploitation' than under a normal mod_php setup, since the php cgi application has read/write privilages instead of just read-only privileges.

- Vince

actually, cgi is more secure because the Apache module forces you to chmod to 777 for many extensions.


Locked

Return to “Security - 1.0.x”