The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Folder Permissions

    Discussion in 'Linux Compatibility and Software' started by Matt is Pro, Aug 12, 2011.

  1. Matt is Pro

    Matt is Pro I'm a PC, so?

    Reputations:
    347
    Messages:
    2,169
    Likes Received:
    0
    Trophy Points:
    55
    So i have a roughly 50GB folder of data that I recently transferred between Ubuntu machines (both running 11.04).

    However, the machine to which I transferred the data, the folder says there are NO owners, thus, no permissions can be set. I basically only have read access. I can't cut files or folders out of the root folder.

    So my question is, can I use chown to re-add permissions/an owner to the folder and it's sub-files and folders?

    If so, how? I have the folder on the desktop.
     
  2. Thaenatos

    Thaenatos Zero Cool

    Reputations:
    1,581
    Messages:
    5,346
    Likes Received:
    126
    Trophy Points:
    231
    open a terminal and type the following

    chown username /path/to/directory

    Try that and and see if it changes things. Probably need to do a chmod too.
     
  3. PopLap

    PopLap Notebook Evangelist

    Reputations:
    22
    Messages:
    395
    Likes Received:
    0
    Trophy Points:
    30
    wouldnt you need the -R so that it affects all files and folders under the directory? at lest thats what i do when i chmod and chown and its worked so far.
     
  4. TuxDude

    TuxDude Notebook Deity

    Reputations:
    255
    Messages:
    921
    Likes Received:
    2
    Trophy Points:
    31
    Yes -R flag is required and the groupname is also good to add.
    Code:
    chown username:groupname -R /path/to/directory
    chmod wont be required assuming the rwx permissions of the earlier place would still be retained. Normally what I would do for copying a large amount of files between machines is - tar them at the source, and untar at the destination - untar automatically creates the files giving permissions to the user who is untarring.
     
  5. Matt is Pro

    Matt is Pro I'm a PC, so?

    Reputations:
    347
    Messages:
    2,169
    Likes Received:
    0
    Trophy Points:
    55
    I'll be tackling this in about and an hour and a half or so.

    Thanks for the advice!
     
  6. Matt is Pro

    Matt is Pro I'm a PC, so?

    Reputations:
    347
    Messages:
    2,169
    Likes Received:
    0
    Trophy Points:
    55
    Sorry for the late update.

    I had to chmod, then chown. I got it all worked out though!

    All 50 GB has been assigned the correct owner. Thanks for the help!