Find the answer to your Linux question:
Results 1 to 7 of 7
I'm using Ubuntu 8.10 I was using Xubuntu but the window manager got messed up so i decided to switch over to Ubuntu. I created another partition as a backup ...
  1. #1
    Linux Newbie thesimplecreator's Avatar
    Join Date
    Jun 2007
    Location
    washington , USA
    Posts
    229

    [SOLVED] file permissions on ubuntu

    I'm using Ubuntu 8.10
    I was using Xubuntu but the window manager got messed up so i decided to switch over to Ubuntu.
    I created another partition as a backup partition and i backed up my files.
    I installed Ubuntu and everything works fine. but when i go to copy my files over from that partition it says i need root permissions so i use "sudo nautilus" and i copy all the files on the backup partition to my home folder.
    but now when i try to access my files that i copied it says i dont have permission.
    how can i copy the files over and give my normal account permmision to use them????
    Microsoft isn't evil, they just make really crappy operating systems.
    Linus Torvalds

    Personal and politically centrist blog.--->
    http://www.deathnerd.com

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    You have to change the ownership of copied files/folder.
    Let say, UserID of Regular User is simple and copied folder name is back_up.
    Navigate to the folder having back_up folder in Terminal and execute this
    Code:
    sudo chown -R simple:simple back_up
    Above command will change ownership of back_up folder and all the files inside it.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined! mhanan's Avatar
    Join Date
    Dec 2008
    Location
    San Diego CA
    Posts
    60
    You'll need to change ownership of the files to the new user profile using the chown command as su.

    example:

    su
    (enter root password)
    chown user /home

    gives ownership of /home to user

    You can use this command with the -R switch to make it recursive.

    See

    man chown

    for more details.

  4. #4
    Linux Newbie thesimplecreator's Avatar
    Join Date
    Jun 2007
    Location
    washington , USA
    Posts
    229
    when i ran "sudo chown" it changed the permission of the backup folders but not there files or subfolders. is there a command to change all the contents of "/media/disk" to normal permmisions????
    Microsoft isn't evil, they just make really crappy operating systems.
    Linus Torvalds

    Personal and politically centrist blog.--->
    http://www.deathnerd.com

  5. #5
    Just Joined! mhanan's Avatar
    Join Date
    Dec 2008
    Location
    San Diego CA
    Posts
    60
    I believe the -R switch will run it recursively.

    man chown for full details

  6. #6
    Linux Newbie thesimplecreator's Avatar
    Join Date
    Jun 2007
    Location
    washington , USA
    Posts
    229
    heeeyyy it worked, thanx guys.
    i didnt know exactly what you meant by recursively at first.
    Microsoft isn't evil, they just make really crappy operating systems.
    Linus Torvalds

    Personal and politically centrist blog.--->
    http://www.deathnerd.com

  7. #7
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Glad to help you !
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...