Results 1 to 6 of 6

Thread: permissions will not allow access to files I moved

  1. #1
    Join Date
    Oct 2006
    Beans
    12

    permissions will not allow access to files I moved

    I backed up files and replaced them, manually, this was a directory copy. I cannot use them as it says they are root:root
    I try to change permissions and am not allowed. I try to change permissions from a startup and cannot get any editor to work, says that it cannot initialize video or some such.
    I have tried every way I know and searched out. None are working.
    I know that it should give me root but will not. It worked initially when I loaded the system. I do not want to have to remove all of this. Even my backup home directory which I keep on a second drive acts the same and shows the same permissions. What Next??

  2. #2
    Join Date
    Jun 2007
    Location
    Belgium
    Beans
    90
    Distro
    Kubuntu 10.10 Maverick Meerkat

    Re: permissions will not allow access to files I moved

    Open op gnome-terminal
    The cd to you backup directory
    Then use this command

    sudo chown YOUR_USERNAME DIRECTORY -R

    That should get you started

  3. #3
    Join Date
    Nov 2007
    Beans
    395
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: permissions will not allow access to files I moved

    to restore file ownership
    Code:
    sudo chown -R username.username /pathto/folder
    Be sure you are only changing ownership on files that are yours. In other words if they were in your home folder.

    it is even safer to do this file by file instead of by whole folders.
    -- Coreigh

    "Only those who attempt the absurd will achieve the impossible"
    ... Einstein or Escher, you pick ...

  4. #4
    Join Date
    Oct 2006
    Beans
    12

    Re: permissions will not allow access to files I moved

    The directory is this /home/larry/websites
    websites is the directory I need to change it is showing root:root

    Somehow it will not do that I have tried all the commands.

    But i finally got it the command is as follows...sudo chown root:larry websites -R

    Thanks for the help

  5. #5
    Join Date
    Jan 2007
    Beans
    6,537
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: permissions will not allow access to files I moved

    Quote Originally Posted by larryweeks View Post
    But i finally got it the command is as follows...sudo chown root:larry websites -R
    If your username is larry then you should probably do:
    Code:
    sudo chown -R larry:larry /home/larry/websites
    Why? Well you want the file to be owned by the user larry, as well as the group larry (each user is a little one-person group by themselves)

    By default the user who owns a file can do anything to it, while the group members can only read the file. Setting chown root:larry will allow you to read the file no problem, but chown larry:larry gives you full access.

  6. #6
    Join Date
    Dec 2006
    Location
    Kentucky, USA
    Beans
    271
    Distro
    Ubuntu

    Re: permissions will not allow access to files I moved

    Another thing. Never copy files that require permissions to work properly to and from an NTFS or FAT/FAT32 partition. The files will lose all permission settings. For backups use an ext2/3/4, reiser3/4, or XFS partition.

Tags for this Thread

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
  •