Stupid question about moving whole directory in Linux
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Stupid question about moving whole directory in Linux
Hello everything, I am new on this forum , I have a stupid question with cost me lot of time :
I have VPS from Godaddy Cent OS 6 .
Everythings good but :
For example I have linux1.com
/home/linux1/public_html/ FILES HERE
and I want to copy file to linux2.com in account I already have :
/home/linux2/public_html
-------------------
It's about wordpress.
The strange problem is that when i download files by ftp and upload to linux2.com everything is alright
But when i try to copy using cp -rp * into linux2 I got Internal Server Error .
I know that it should be a small mistake in copy comand, please help me because I loe everyday many hours because this simply comand. I guess is something about user right ,
You can use secure copy are rsync to copy the file instead of ftp .FTP tranfer data unencrypt format .Its always safe to transfer file using secure copy protocol (scp)
I sitll don't understad, sorry but i am beginner .
Logged as root how i can copy all files from user1 public_html folder to user2 in public_html folder and keep it working without getting internal server error.
I understand that is something about permision, also that when i download via ftp in local computer from user1 and reupload to user2 it's working because files are unedited.
Logged as root how i can copy all files from user1 public_html folder to user2 in public_html folder and keep it working without getting internal server error.
ROOT is the administrator account . root has priviledge and control of executing all commands .
I sitll don't understad, sorry but i am beginner .
Logged as root how i can copy all files from user1 public_html folder to user2 in public_html folder and keep it working without getting internal server error.
I understand that is something about permision, also that when i download via ftp in local computer from user1 and reupload to user2 it's working because files are unedited.
Thank you
the reason why i asked you the name of the user you are using to ftp is so that you would realize that the owner of the files is not what you expect. as an experiment you can copy those files using both methods then use 'ls -l' to see the security settings/owner of those files.
i do cp -r and tryed also cp -rp ( recursive permision ) and still get internal server error, by downloading and reuploading via fgtp is working .
waiting for more opinions , thank you
i do cp -r and tryed also cp -rp ( recursive permision ) and still get internal server error, by downloading and reuploading via fgtp is working .
waiting for more opinions , thank you
using cp you are copying files as the user that issued the command (use the ls -l and chmod/chown/chgrp to view/edit the permissions to whatever you want).
by using ftp, you are logging in as the user you specified so when you create files the owner is set to the creator of each file.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.