Good answer! - glad you found it.
(I'll put in 2¢ here, for an explanation)
When you copy files (in most cases) the new files will 'belong'/be owned by the linux 'user' that copied them.
There are two cures for this:
Before the fact, using the cp command with the -p / --preserve parameter as root (only works on the command line)
- Code: Select all
cp - p /opt/lampp/htdocs/folder-original/* /opt/lampp/htdocs/folder-new
-- will copy all the files in folder-original to folder-new and preserve their ownership, timestamp, and mode (permissions/chmod)
This is very useful for copying within LAMPP, as the ownership is usually right.
I was 'shocked' to just find about half the Google references on Linux 'cp' don't contain all the possible arguments - this is a good one:
http://linux.about.com/od/commands/l/blcmdl1_cp.htmthis one has good examples, but not all the 'bells and whistles'
http://www.basicconfig.com/linux/how_to ... tory_linuxEx post facto, use the 'chown' command in Term - in most cases in LAMMP, you should to apply this command to the folder that contains the files:
- Code: Select all
chown -R nobody:root /opt/lampp/htdocs/foldername
The '-R' is for recursive.
Good Luck and thanks