I think he is copying to the same server? in which case, I would use a cp -Rfp: cp -Rfp /home/USERNAME/public_html/FOLDER /home/USERNAME2/public_html/ this will place the files from "FOLDER" in from USERNAME to USERNAME2's public_html/FOLDER Alternantely, if you were doing a sync to another server, I prefer to utilize rsync. - Sebastian Rametta
Same server yes, thanks. And when you move files like that will the file permissions stay? And this is files that if I transfer them with ftp I have to use binary mode or else they get corrupted, will this apply here or is it not an issue when moving the files on the same server?
Since you are on the same server, if you use the command: cp -Rfp /home/USERNAME/public_html/FOLDER /home/USERNAME2/public_html/ it will copy the folder with the same permissions. then what you want do to is: cd /home/USERNAME2/public_html/ chown -R user2.user2 FOLDER replace user2 with the new usernames username. The cp -Rfp preserves the permissions and copies recursively, then the chown changes the ownership to the new user. - Sebastian Ramettta