Scientific Linux Forum.org



  Reply to this topicStart new topicStart Poll

> Locked out of my backup - SL7
foxinsocks
 Posted: Sep 19 2017, 11:16 PM
Quote Post


SLF Member
***

Group: Members
Posts: 77
Member No.: 137
Joined: 8-May 11









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.



This post has been edited by foxinsocks: Sep 20 2017, 01:54 AM
PMEmail Poster
^
inittux
 Posted: Sep 20 2017, 06:01 PM
Quote Post


SLF Geek
****

Group: Members
Posts: 306
Member No.: 953
Joined: 20-October 11









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.

--------------------
PM
^
foxinsocks
 Posted: Sep 23 2017, 07:41 AM
Quote Post


SLF Member
***

Group: Members
Posts: 77
Member No.: 137
Joined: 8-May 11









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 :-)
PMEmail Poster
^
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll