HDD Permissions multi distro

Discussion in 'Linux' started by thrawn60, Sep 7, 2008.

  1. thrawn60

    thrawn60

    Joined:
    Sep 7, 2008
    Messages:
    8
    Likes Received:
    0
    Hi,

    I hope that there is someone that can help me with this problem.

    I was running Ubuntu 8.04 until my mainboard gave up.

    So I got a AAO, where I have attached a 500GB external HDD to keep all those informations that I had on the old computer.

    My problem is that I don't have permissions to copy files from the old Ubuntu HDD to my new HDD, I have tried to boot from my old HDD and that works, but then I don't have permission to copy to the new HDD...

    Is there any way to set the permissions on the HDDs so everyone can access the data? Both HDDs are formated in Ext3 or Ext2, so no FAT16, FAT32 or NFTS here to make it more complicated.

    I tried to play with the CP function while booting from the Ubuntu, but I couldn't get it to work..

    I'm quite new to all this Linux thing, so I guess the problem is simple :)
     
    thrawn60, Sep 7, 2008
    #1
  2. thrawn60

    RockDoctor

    Joined:
    Aug 21, 2008
    Messages:
    963
    Likes Received:
    0
    Location:
    Minnesota, USA
    Make sure each user has the same UID and each group has the same GID on both systems. UIDs can be changed by editing /etc/passwd; GIDs can be changed by editing /etc/group. You will need to change owners and/or groups of your users' files on one of your drives to match the new UIDs and GIDs. Hope this helps
     
    RockDoctor, Sep 9, 2008
    #2
  3. thrawn60

    thrawn60

    Joined:
    Sep 7, 2008
    Messages:
    8
    Likes Received:
    0
    Hi,

    Thanks for the reply.. I still have a few questions since I'm new with this Linux thing.

    I'm using the AAO as my main machine, so I need to boot from the old system (Ubuntu) and enter those folder and edit it to match the information on my AAO in the same folders right? since then that will give me the right to manipulate the information on the old drive..

    Can these information be altered without any risk of loosing data on the drive? I mean if I change the information and move the data to my external drive, then to change it again to fit the AAO information nothing gets lost?

    Thank you in advance for the answer.

    Michael
     
    thrawn60, Sep 11, 2008
    #3
  4. thrawn60

    Grim Squeaker

    Joined:
    Aug 19, 2008
    Messages:
    410
    Likes Received:
    0
    Did you try to do the copying as root instead of a normal user ?
    Things like chown and chgroup can also help.
     
    Grim Squeaker, Sep 11, 2008
    #4
  5. thrawn60

    thrawn60

    Joined:
    Sep 7, 2008
    Messages:
    8
    Likes Received:
    0
    Hi,

    I did not try to copy as Root since I'm do know how to to that in terminal :( I will try Change Owner and Change Group.

    Michael
     
    thrawn60, Sep 14, 2008
    #5
  6. thrawn60

    Grim Squeaker

    Joined:
    Aug 19, 2008
    Messages:
    410
    Likes Received:
    0
    Changing to root can be done with "sudo" and "su".
    The filemanager is called thunar, so if you want to use that as root just type the following in the console:

    sudo thunar &
     
    Grim Squeaker, Sep 14, 2008
    #6
  7. thrawn60

    thrawn60

    Joined:
    Sep 7, 2008
    Messages:
    8
    Likes Received:
    0
    It worked :)

    I opened the terminal and changed o Root, and the drag N drop the location in the terminal window adding the chmod -R 777 /Media/disk-1 so now everything is working like it should :)

    Thank you very much for the help.

    Michael
     
    thrawn60, Sep 14, 2008
    #7
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.