Home » Questions » Computers [ Ask a new question ]

Linux drive permissions for disk used by two systems

Linux drive permissions for disk used by two systems

I've got a large mdadm-based RAID5 array that I've been using with an Ubuntu 8.04 system. I'm setting up a new 9.10 (alpha 6) system on the same hardware. mdadm does a great job automagically finding and reassembling the array, but when I go to mount it, it wants my password ("Authentication is required to mount the device"). I am using the same user name for both systems, but I'm guessing that linux is smart enough to realized that user "joeblow" from one system is not necessarily the same person as "joeblow" on another system.

Asked by: Guest | Views: 296
Total answers/comments: 1
Guest [Entry]

"File ownerships are based on the uid and gid of the user, not the name. Check the uid and gid on the files in the array, and if they are different, you can change the ownership to the new user with this command:

chown -R joeblow:joeblow /mount_point

However, if you're going to be using both systems, I suggest you sync the uid and gid for the joeblow user on both systems using the usermod and groupmod commands."