PDA

View Full Version : [SOLVED] permissions after restoring /home



johnfrith1
July 21st, 2014, 08:36 PM
I'm preparing to go from 12.04 to 14.04, and I have a question about home folder / file permissions.

I'm planning to reformat the disk,and then I will restore /home in a LiveUSB session (using Backup). Will I run into issues with permissions?

If the restored files will have the same permissions as they had originally, do I need to make sure the new user name is the same as the old one?

I'm having difficulty getting my head around this. What would I need to do? Thanks in advance for any help.

mikewhatever
July 21st, 2014, 09:01 PM
I'm preparing to go from 12.04 to 14.04, and I have a question about home folder / file permissions.

I'm planning to reformat the disk,and then I will restore /home in a LiveUSB session (using Backup). Will I run into issues with permissions?
If you do it right, I don't think so. ...what's "Backup"?


If the restored files will have the same permissions as they had originally, do I need to make sure the new user name is the same as the old one?

There are permisions (wrx), and there is ownership. If you change the username, the files will be owned by the old one. It's not hard to change ownership with the 'chown' command, but if you don't want to mess with that, keep the same username.

johnfrith1
July 21st, 2014, 11:06 PM
If you do it right, I don't think so. ...what's "Backup"?
"Backup" is the backup utility included with 12.04. So "do it right" means if I don't mess up restoring?


There are permisions (wrx), and there is ownership. If you change the username, the files will be owned by the old one. It's not hard to change ownership with the 'chown' command, but if you don't want to mess with that, keep the same username.
Ok. So I won't screw up permissions if I restore from a different username, or by using chown?

Thanks for that, mikewhatever.

mikewhatever
July 21st, 2014, 11:23 PM
I think the backup tool in Ubuntu is called deja-dupe. I've not used it much, but pretty sure it should preserve permissions, ...gues that means it won't screw them, and chown only changes ownership. Anyway, we are here to help, so do not hesitate to ask, if anything goes wrong.

johnfrith1
July 22nd, 2014, 01:04 AM
Yes, I should have said, it's called backup, but the help text refers to deja-dupe.

Thanks mikewhatever. I'll start tomorrow, and it's a great comfort to know there are helpful people around.

To twist Tenesse Williams - I've relied on the kindness of strangers, so I'll pass it on, (and try to be geneorous with it)!