Printable Version of Topic
Click here to view this topic in its original format
Scientific Linux Forum.org > Security and privacy > Locked out of my backup - SL7


Posted by: foxinsocks Sep 19 2017, 11:16 PM
Recently I was contemplating upgrading from SL6.6 to 7x but didn't proceed at the time (see http://scientificlinuxforum.org/index.php?showtopic=3640 if you're interested) but yesterday disaster struck!

It seemed expedient to install SL7.3 and progressively populate my Home folder from the most recent backup (usb drive). I can mount the drive but I can't access the backup folder - You do not have the permissions necessary to view the contents of "backup"! I used the same user name as before but have discovered that my SL7 user number is now 1000.

What to do?
Can I do something like recursively change the user number on the folder and its contents? (All 190 GB) unsure.gif
e.g. chown -R --from=500:500 1000:1000 /run/media/<user>/<usb-backup-drive>/backup/*

On the other hand, as far as my system is concerned I'm the only user. It seems that there's a small chance of conflict (https://en.wikipedia.org/wiki/User_identifier) if I simply changed my user ID from 1000 to 500.


Posted by: inittux Sep 20 2017, 06:01 PM
QUOTE (foxinsocks @ Sep 20 2017, 12:16 AM)
Recently I was contemplating upgrading from SL6.6 to 7x but didn't proceed at the time (see http://scientificlinuxforum.org/index.php?showtopic=3640 if you're interested) but yesterday disaster struck!

It seemed expedient to install SL7.3 and progressively populate my Home folder from the most recent backup (usb drive). I can mount the drive but I can't access the backup folder - You do not have the permissions necessary to view the contents of "backup"! I used the same user name as before but have discovered that my SL7 user number is now 1000.

What to do?
Can I do something like recursively change the user number on the folder and its contents? (All 190 GB)  unsure.gif
e.g. chown -R --from=500:500 1000:1000 /run/media/<user>/<usb-backup-drive>/backup/*

On the other hand, as far as my system is concerned I'm the only user. It seems that there's a small chance of conflict (https://en.wikipedia.org/wiki/User_identifier) if I simply changed my user ID from 1000 to 500.


I would just use the option you said
chown -R 1000:1000 /run/media/<user>/<usb-backup-drive>/backup/*
I just have a rule of sticking to the user numbering of what the default of the
version of the OS is, but that's just me. You could also use the username
instead of the uid when chowning.

Posted by: foxinsocks Sep 23 2017, 07:41 AM
QUOTE (inittux @ Sep 21 2017, 04:01 AM)


I would just use the option you said
chown -R  1000:1000 /run/media/<user>/<usb-backup-drive>/backup/*
I just have a rule of sticking to the user numbering of what the default of the
version of the OS is, but that's just me. You could also use the username
instead of the uid  when chowning.


Got it.
Sorry about the delayed reply :-( Before you'd replied I discovered that I could mount the USB drive on my laptop and transfer chunks (mostly several directories at a time) directly to an smaller USB stick and the new sl7 install on the desktop accepted the files from the usb stick - seemingly recognising the common user name rather than getting hung up on the user ID. That process actually gave me the opportunity to leave out the transfer of some files - like several non-essential VMs etc. Nevertheless, I really appreciate your help :-)

'
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)