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.
I am trying to migrate my kmail setup from a desktop to my laptop. I have succeeded in moving all the files and getting the ownership and permissions right I think except for what seam to be account spec files for the servers relating to each email account. Some of the files I had to take possession of as root to be able to copy them to the laptop and the chown -R user:user /a/dir to be able to have kmail on the laptop use them.
The file names for the ones I can't move to the laptop look something like
user@myemail.com:@some.server.net:995
I have taken possession of these files as root on the desktop and save them to a shared folder that I can access from the laptop. From the laptop I can select the files but when I try to save them on the laptop I get an error message that says access denied. This is the root account how come access is denied?
I have looked on google but I didn't find where anyone else was having this problem.
What am I missing?
It must be one of those stupid things. I did spend an hour or so trying to mount my bluetooth adapter as my thumb drive today. Then I noticed I had the wrong usb thingy in my hand. Duh. Boy do I feel stupid.
I am doing this through Thunar as root. (kmenu>run>thunar as root) I have not tried to do it from the command line.
The other files I had to take possession of as root, I had to save first in a different folder on the desktop before I could copy them to the laptop. But that didn't work for these.
I have tried to copy these files onto a usb thumb drive (windows format) and the desktop system won't let me. I can however copy them where ever I want to on the desktop. Still no success copying these (desktop)root owned file to the laptop with the (laptop)root account.
I do understand, I think, about the thumb drive because it's file system has no way to preserve the r/w bits for the files.
Still puzzled as to why the (laptop)root account, which can read the files on the desktop, can't save them on the laptop?
Although I can see the files from as a normal user I can't open them. They are owned by root, must be why. The permissions are reported as [-rw--w--w-]. I can change these on the desktop from root but not from the laptop. I am unable to look at the contents (they are just text files) from root either.
Why don't you try to use scp instead?
Become root on the laptop, go to the location where you
want the files to end up
cd /path/to/target
scp -pr root@desktop:/path/to/files .
And then chown the files on the laptop to the user
they're meant to be owner by.
chown -R user:group /path/to/target/files
I have tried renaming them on the desktop but I still can't copy them to the laptop.
I have opened them in a root text editor and copied the contents to a normal user text editor and saved the file and it disappears into cyberspace somewhere.
There has to be some kind of bit set that I don't know about.
I need a . at the end? Never saw that before. I did a little looking on google and looked at a couple of other examples and came to the conclusion that I should be doing this from the desktop and not the laptop where the files needed to end up and I had immediate success without a . at the end.
Thanks again Tinkster for pointing out scp to me. It worked very well. I recopied all of the files for kmail again just to be sure. I did notice as I was looking over the files while chown'ing them that some of them were still owned by the laptop user from the previous attempts. Not a complete overwrite?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.