In a Drupal installation on CentOS, there are many folders with the following permission:

drwxr-xr-x  8    6226    6226 4096 Jan  7 21:46 cck

The user/group 6226 was not created by me. How come there is such a user/group? Thanks!

link|improve this question

62% accept rate
feedback

3 Answers

up vote 6 down vote accepted

CCK is a plugin. Did you perhaps download the tar file and extract it while logged in as root? If so the permissions in the archive would be used on the filesystem when extracted.

link|improve this answer
1  
Who installs modules by extracting tarballs anymore? Get drupal.org/project/drush – maristgeek Mar 24 '11 at 23:29
feedback

To improve security, one normally installs subsystems like Drupal with their own uid/gid. The bug here is that the package failed to create the relevant user and group entries (or, if it was a tarball instead of a distribution package, that you haven't run some post-install script).

link|improve this answer
feedback

6226:6226 permission happens when you are running tar or drush as root. Try running it as a non-root user who is part of the www-data (or whatever your apache user is). Doing this way all files will have ownership as user:www-data

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.