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.

    Locked Folder ???

    Discussion in 'Linux Compatibility and Software' started by Kamin_Majere, Jan 31, 2009.

  1. Kamin_Majere

    Kamin_Majere =][= Ordo Hereticus

    Reputations:
    1,522
    Messages:
    2,680
    Likes Received:
    0
    Trophy Points:
    55
    Ok so i transfered all of my D&D pdf's to ubuntu and they all work flawlessly (yes i know i play D&D...sue me)

    But for some reason the folder has a padlock on the upper right hand side of it and it wont allow me to move the folder's location(or any of the folder contents) or delete the folder (or any of the contents)

    And for the life of me i cant figure out how to "unlock" it.

    Any help would be great

    K_M
     
  2. ALLurGroceries

    ALLurGroceries  Vegan Vermin Super Moderator

    Reputations:
    15,730
    Messages:
    7,146
    Likes Received:
    2,343
    Trophy Points:
    331
    You lack ownership and write privileges on it.. that's why you're getting the padlock. The easiest way to do it is to open a root terminal window and run chown -R yourusername foldername on it to make yourself the owner.
     
  3. Thomas

    Thomas McLovin

    Reputations:
    1,988
    Messages:
    5,253
    Likes Received:
    0
    Trophy Points:
    205
    But permissions can also be the issue...ownership sometimes doesnt mean you have permissions to access it.
    Code:
    sudo chmod 777 <folder>
     
  4. EateryOfPiza

    EateryOfPiza Notebook Geek

    Reputations:
    24
    Messages:
    95
    Likes Received:
    0
    Trophy Points:
    15
    You don't want to use chmod 777 which gives read-write-execute permissions to everybody on the system. You want 664 which gives read-write permissions to owner and group, and read only permissions to all users. You don't need execute because they are PDF's, which aren't executable files.

    Do this:

    Code:
    chown -R yourusername:yourusername foldername
    cd foldername
    chmod 775 *
    chmod 644 *.*
    And repeat for sub folders.

    Don't use chmod -R becuase you still want your folders to have execute permissions or else you cant cd into them.

    If it still doesn't work, then do ls -l folder and post the output here.
     
  5. Pitabred

    Pitabred Linux geek con rat flail!

    Reputations:
    3,300
    Messages:
    7,115
    Likes Received:
    3
    Trophy Points:
    206
    chmod 777 is VERY dangerous. You should never use it. I've seen people hose systems doing it, because many system-level apps will check to make sure permissions are tight enough before they'll start up.

    It's much better to just change the permissions like such:
    Code:
    sudo chown -R `whoami`:`groups|awk '{ print $1 }'` FILENAME
    Where you replace FILENAME with the file or folder you want to change the ownership of. This will change the ownership and group to whoever is running the sudo command and their default group, and will change every file under the directory (or just the file, if that's all it is) and do NOTHING to the permissions. Which is generally what you want.
     
  6. Kamin_Majere

    Kamin_Majere =][= Ordo Hereticus

    Reputations:
    1,522
    Messages:
    2,680
    Likes Received:
    0
    Trophy Points:
    55
    Thanks all. This worked great. Allowed me to unlock the permissions and get the folder where i wanted it to go.

    (sorry about the late thanks...had to get back from work)