2 problems with permissions/overwrite
I'm running an Apache server with the folder /wwwroot. I'm having trouble with basic file permissions and overwrites.
Logged in as root, whenever I try to place new files in a directory, they are only CHMODed to 600, when I usually need 644 or 755 to run the files on my site. Is there any way to make a default so I don't have to go back and CHMOD every file?
Also, whenever I copy a folder from another directory to my server, it replaces the entire directory and files, not just the files in that directory. For instance, if I had the folder 'stuff' with 5 items in it and I copied over another folder 'stuff' with 1 new item, the folder on the site now reads as 'stuff' with one item.
I know these are probably stupid questions, but I really can't figure out what's wrong. Does it have something to do with being logged in as root? Thanx