Results 1 to 4 of 4

Thread: Move files between home folders

  1. #1
    Join Date
    Mar 2006
    Beans
    81

    Move files between home folders

    I got files in an old user's home folder that I need to move to my new users home folder, but I get "permission denied".

    I'm logged in as my new user. And I can open files in my old users home folder and I can move them to another folder in the same home folder, but when I try to move a file to my new users home folder I get a message saying "permission denied".

    I also open Nautilus with gksudo but still get "permission denied"

    How can I move files between users' home folders?

  2. #2
    Join Date
    Jun 2007
    Location
    Montréal
    Beans
    69
    Distro
    Ubuntu 9.10 Karmic Koala
    Use a terminal to take ownership of the olduser's folder and files.

    sudo chown -R you:yourgroup /home/olduser

    where you is your username, yourgroup is the group you belong to, and /home/olduser is the path of the oldusers home folder.
    Last edited by vdawg; May 9th, 2008 at 04:49 PM.

  3. #3
    Join Date
    Mar 2006
    Beans
    81

    Re: Move files between home folders

    After changing ownership on the old users home folder with containing files I could move the files to my new users home filder, thanks.

    What I cant understand though is that I could not move the files as user root (gksudo) in nautilus that should have all permissions..

  4. #4
    Join Date
    Jun 2007
    Location
    Montréal
    Beans
    69
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Move files between home folders

    Agreed, it is a little bizzare... however it may be a safety feature as you really shouldn't be working as root, imagine if you deleted /usr or something like that

    Cheers!

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
  •