Page 1 of 1

Backup problems with files owned by 99 (nobody)

Posted: Fri Dec 15, 2006 11:32 am
by Jonny
I've just noticed that the backups I've been making from my cpanel hosted site do not include any of the files or directories that have been created by CMSMS with an owner/group of 99 e.g. uploaded images, modules installed via Module Manager.

Any ideas how I can fix this? Guess I could ask my host to set up a cron job to change ownership, but I'd rather sort it myself if possible.

Re: Backup problems with files owned by 99 (nobody)

Posted: Fri Dec 15, 2006 12:02 pm
by Dr.CSS
Have you tried this way...


http://forum.cmsmadesimple.org/index.ph ... 376.0.html

The data base holds mostly just the stuff you created with the modules and page editing, template changes, CSS changes or originals stuff like that, the folders have to be moved, esp. images etc....

Re: Backup problems with files owned by 99 (nobody)

Posted: Fri Dec 15, 2006 5:29 pm
by Jonny
Thanks Mark, I've been using Database Backup and found it very useful, but it doesn't help with my main problem: I'm denied permission to FTP files that have been uploaded within CMSMS, mainly images.

This has arisen since moving to a new hosting company. I'm very happy with them otherwise but I'd really like to use CMSMS without issues like this. Any recommendations for a UK based host with reseller packages?

Re: Backup problems with files owned by 99 (nobody)

Posted: Fri Dec 15, 2006 9:37 pm
by calguy1000
The webserver process is ran by 'nobody' I'd bet.  and the default file creation mask is set such that you don't have read access in FTP to any of the files uploaded with the uploads module, image manager, theme manager, or xml modules.

What you'll have to do is a two step process:
  1) use a change permissions php script to open the access up to all files (set permissions to 755 should work).
  2) change the file creation mask in the site preferences to "022" such that any newly uploaded files will be created with the 755 permission.  they'll still be owned by UID 99, but you should be able to read them.

Re: Backup problems with files owned by 99 (nobody)

Posted: Sat Dec 16, 2006 10:52 am
by Jonny
Thanks for your suggestions. Here's how things worked out...

My host chowned all files to my owner/group.

Uninstalled all modules that had been installed with Module Manager.

Changed umask in Global settings to 122.

Reinstalled modules.

Permissions for Modules and new uploads are now 664 rather than 640 and can now be backed up by FTP and cpanel's backup scripts.