Results 1 to 4 of 4

Thread: cant copy files permission denied

  1. #1
    Join Date
    Sep 2008
    Beans
    36

    Question cant copy files permission denied

    i am loged in threw a live cd and i need to copy files that i have on a partition that will not boot some files im able to copy but others i cant because i dont have the right permission can some one please tell me how to do this so i can back my files so i can reinstall ubuntu thank you

  2. #2
    Join Date
    Dec 2007
    Beans
    1,042
    Distro
    Ubuntu Karmic Koala (testing)

    Re: cant copy files permission denied

    These files would be the system files most likely, which have restricted permissions. I doubt you would need to copy those, as restoring them when you reinstall would likely clobber your system. (In other words, if it's not in your home folder, you should not try to restore it!)

    That being said, the best way to copy those files it to pull up a teminal (applications>accessories>terminal) and type "gksudo nautilus" and hit enter. Do not change any letters to uppercase. When it asks for a password hit enter again (liveCDs do not have a password set.) Now a new file browser window will open. This filebrowser is running with administrator privilages and you can do whatever you want with it.


    Nautilus is the name of the filebrowser program.

    Gksudo is what you use to run a program as administrator (AKA "root" or "super-user") privilages. For non-graphical programs (I.E. programs run in the terminal entirely,) you can use "sudo" instead.

    So the command "gksudo nautilus" means "open nautilus with gksudo," which has the result of running nautilus as the super user.


    A word of warning: only use gksudo if you really now what you're doing! Root privilages are not intended for day-to-day use and make it really easy to screw things up.
    He that would make his own liberty secure must guard even his enemy from oppression; for if he violates this duty he establishes a precedent that will reach to himself.
    -Thomas Paine

  3. #3
    Join Date
    Sep 2008
    Beans
    36

    Re: cant copy files permission denied

    got it thanks





    Quote Originally Posted by MaxIBoy View Post
    These files would be the system files most likely, which have restricted permissions. I doubt you would need to copy those, as restoring them when you reinstall would likely clobber your system. (In other words, if it's not in your home folder, you should not try to restore it!)

    That being said, the best way to copy those files it to pull up a teminal (applications>accessories>terminal) and type "gksudo nautilus" and hit enter. Do not change any letters to uppercase. When it asks for a password hit enter again (liveCDs do not have a password set.) Now a new file browser window will open. This filebrowser is running with administrator privilages and you can do whatever you want with it.


    Nautilus is the name of the filebrowser program.

    Gksudo is what you use to run a program as administrator (AKA "root" or "super-user") privilages. For non-graphical programs (I.E. programs run in the terminal entirely,) you can use "sudo" instead.

    So the command "gksudo nautilus" means "open nautilus with gksudo," which has the result of running nautilus as the super user.


    A word of warning: only use gksudo if you really now what you're doing! Root privilages are not intended for day-to-day use and make it really easy to screw things up.

  4. #4
    Join Date
    Sep 2008
    Location
    Göttingen, germaniee
    Beans
    62
    Distro
    Ubuntu

    Re: cant copy files permission denied

    try as superuser, make sure partitons are mounted

    sudo cp -r /media/disk-1 /media/disk-2 as example

Bookmarks

Posting Permissions

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