We have a directory that holds the media for a website. We want that directory owned by the apache user and group. But for some reason that directory and all it's files keep reverting to being owned by a user account and group.
[root@webservera ourwebsite]# ls -ld media/ drwxrwxr-x 163 user_a user_a_group 143360 Apr 29 13:29 media/
I have even setup a cron job to automate the ownership of this file to the right group to run every hour.
0 * * * * /bin/chown -R apache:apache /var/www/ourwebsite/media/
But every hour that directory keeps reverting to being owned by user_a and user_a_group.
I've checked history files and crontabs for all users including root for rsync's and chowns.
And I can find no evidence of what is causing this phenomenon of the directory automatically changing its' owner and group.
How can I best investigate this in ways I haven't tried yet?
The host in question is a CentOS 5.7 host.
Thanks
Tim
On Wed, May 7, 2014 at 1:08 PM, Tim Dunphy bluethundr@gmail.com wrote:
We have a directory that holds the media for a website. We want that directory owned by the apache user and group. But for some reason that directory and all it's files keep reverting to being owned by a user account and group.
What are the user IDs of the apache and user_a users? Are these local
mounts or shares?
I've seen a similar thing when there was a UID conflict.
What are the user IDs of the apache and user_a users? Are these local
mounts or shares? I've seen a similar thing when there was a UID conflict. ______________________________________________
Thanks.. The directory that keeps changing is an NFS mount.
On Wed, May 7, 2014 at 1:15 PM, Kwan Lowe kwan.lowe@gmail.com wrote:
On Wed, May 7, 2014 at 1:08 PM, Tim Dunphy bluethundr@gmail.com wrote:
We have a directory that holds the media for a website. We want that directory owned by the apache user and group. But for some reason that directory and all it's files keep reverting to being owned by a user account and group.
What are the user IDs of the apache and user_a users? Are these local
mounts or shares?
I've seen a similar thing when there was a UID conflict. _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
The UID and Group belong to LDAP users on the system.
On Wed, May 7, 2014 at 1:22 PM, Tim Dunphy bluethundr@gmail.com wrote:
What are the user IDs of the apache and user_a users? Are these local mounts or shares? I've seen a similar thing when there was a UID conflict. ______________________________________________
Thanks.. The directory that keeps changing is an NFS mount.
On Wed, May 7, 2014 at 1:15 PM, Kwan Lowe kwan.lowe@gmail.com wrote:
On Wed, May 7, 2014 at 1:08 PM, Tim Dunphy bluethundr@gmail.com wrote:
We have a directory that holds the media for a website. We want that directory owned by the apache user and group. But for some reason that directory and all it's files keep reverting to being owned by a user account and group.
What are the user IDs of the apache and user_a users? Are these local
mounts or shares?
I've seen a similar thing when there was a UID conflict. _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
-- GPG me!!
gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
On Wed, May 7, 2014 at 12:22 PM, Tim Dunphy bluethundr@gmail.com wrote:
What are the user IDs of the apache and user_a users? Are these local
mounts or shares? I've seen a similar thing when there was a UID conflict.
Thanks.. The directory that keeps changing is an NFS mount.
If it is nfsv4, then you have the mysteries of idmapd involved. With v3, it should just be the numeric id's that you can see with ls -n instead of ls -l, but keep in mind that they could be changed by any system with write access to the shared directory.