View Full Version : [ubuntu] LOCK icon on folder. Where did it come from?
July 5th, 2008, 01:05 AM
I had a couple of folders with lock icon. I searched this forum and used "sudo rm filename" to remove the files within the folder first, and then removed the empty folder. But where did the lock come from in the first place?
July 5th, 2008, 01:08 AM
It's probably because it's owned by root. If it's set so that only root can look through it, it appears "locked".
July 5th, 2008, 01:16 AM
Probably you move a file as root or in a live CD that is usually logged in a root.
July 5th, 2008, 01:42 AM
the lock may appear on files and folders copied from a data cd. it would still be a matter of ownership i think.
July 5th, 2008, 02:14 AM
you can change the owner of the folder, from root to yours by running
sudo chown user:group name of file or /folder
you should only use this for folders which aren't system folders. Pretty much when you copied something as root into your home folder ... I only use it for files in my home folder.
July 11th, 2008, 01:46 PM
Thanks. The folders were copied from data DVD. I thought I pushed wrong buttons somewhere.
July 11th, 2008, 03:55 PM
Actually it's a permissions issue not ownership, you own the files or folders. The new way with hardy is when you copy from media that's mounted read only you only get read permissions for files and access for folders. See here for add. info
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.