File ownership mess with external usb HDD

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
Level 3
Level 3
Posts: 133
Joined: Sat Sep 12, 2015 4:16 pm

File ownership mess with external usb HDD

Post by Pangolin »

Hi everyone!

My situation is as follows:

I have a machine number ONE with 2 users: user A (local ID 1000) and user B (local ID 1001).

I also have a machine number TWO with 2 users: user C (local ID 1000) and user D (local ID 1001).

For data backup purposes, I use the same external usb HDD (LUKS encrypted) with both machines.
What happens is that the ownership of the backed-up files results to be "shared" between users A and C and between users B and D, I suppose because they have the same local ID (though their "human-readable" names are different).

Is there a SAFE way to apply a system-wide change to users C's and D's ID (like making them 1010 and 1020) so to prevent confusion in backups?
Of course, the most important thing to me is not to break anything on the working machine...
Waiting for your help.
I'm here thanks to Windows 10
Level 4
Level 4
Posts: 354
Joined: Tue Jul 18, 2017 5:57 am

Re: File ownership mess with external usb HDD

Post by TI58C »

May sound stupid and have practical problems with existing backups, but:

Why not partition external USB drive in two partitions, each luks-encrypted, one partition to be called "backup_one" and one partition called "backup two"

You 'd only have to be careful to make your backups to the right partition. No more confusion.

Linux is like my late labrador lady-dog: loyal and loving if you treat her lady-like, disbehaving princess if you don't.
User avatar
Level 4
Level 4
Posts: 384
Joined: Sun Mar 29, 2015 4:08 pm

Re: File ownership mess with external usb HDD

Post by ganamant »

If you only use that drive for backups, this is a mild annoyance, but not a real issue. Upon restoration (after all, this is what backups are for), each owner will get the right files.
Post Reply

Return to “Newbie Questions”