[TYPO3] Setting Typo3 (or Apache?) to create files and folders with specific Owner-Group values
Bernd Wilke
xoonsji02 at sneakemail.com
Wed Dec 19 10:04:44 CET 2007
Denis Bilodeau schrieb:
> Any file/folder created by my Typo3 installation (3.5 in process of
> updating to latest) has for owner and group: "groupname", which means
> that I don't have all permissions for those files.
>
>
> Suggestions I found in searching the mail archive:
> 1: Looking in the Install tool. Of course, but we can set permissions
> for created files, for created folders, and reset the group of files.
> But not determine the owner.
>
> 2: Someone mentioned the Filepermissions or Quixplorer extentions. Not
> relevant: they are for changing permissions, not setting Typo3 to create
> files as "such" owner.
>
> 3: Someone mentioned in a thread that Apache is responsible for this.
> But no precision on how to set it up.
>
> Do some of you encountered this problem or have a solution?
>
> Denis
you have to understand the right-management of an unix-system, which
differs from windows.
in unix systems there are three stages of permission
owner
group
everyone/world
each of this groups can have
the rights
Read
Write
eXecute
this is coded in bits giving
rwxrwxrwx
||||||+++-everyone
|||+++----group
+++-------owner
normaly notated in octal, as each octal digit includes the right for one
permission-stage.
(for further information see wikipedia or similar:
http://en.wikipedia.org/wiki/File_system_permissions)
on the other hand every user has at least one group-membership (similar
to the TYPO3-FE-User)
on creating a file the file attributes owner and group are set to the
actual user and the first(!) group this user is member of.
a webserver is worked normaly by at least two users:
your access (shell / ftp)
the web-server-process apache-programm which runs the php.
this means two different owner of files as both may create files and
directories.
normaly all is well if these two users share the same (first!) group and
setting filemasks to grant full access to group-access (rw-rw-r-- 664)
maybe your configuration just needs to correct the group-entries and
filemasks, which are the most common errors on webservers where you have
problems accessing files from TYPO3 (apache-user) and FTP/shell (your
account).
Bernd
--
http://www.pi-phi.de/t3v4/cheatsheet.html
More information about the TYPO3-english
mailing list