PDA

View Full Version : [ubuntu] LOCK icon on folder. Where did it come from?



paker
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?

geek_Man
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".

lukjad007
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.

Teber
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.

whitethorn
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.

paker
July 11th, 2008, 01:46 PM
Thanks. The folders were copied from data DVD. I thought I pushed wrong buttons somewhere.

mc4man
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
http://ubuntuforums.org/showthread.php?p=5259083#post5259083