Unlock Photos ?

9 réponses [Dernière contribution]
theblackpig

I am a member!

Hors ligne
A rejoint: 09/13/2012

This may sound daft, I put over a thousand photos onto a non re-writable dvd.
I've just loaded them onto My computor and they come up locked.Whilst I can change the permissions for an idividual picture no problem this will take hours.
Is there a way of doing the whole lot in one go?

lembas
Hors ligne
A rejoint: 05/13/2010

Sure is. Open a terminal window and input

sudo chown -R `whoami`:`whoami` /path/to/images

This will make you the owner of all files recursively in the path.

EDIT:syntax fixed ...

theblackpig

I am a member!

Hors ligne
A rejoint: 09/13/2012

I entered this in terminal

chown -R 'john': 'john' /john/Photos/100NIKON

and got the message chown: cannot access `:': No such file or directory

Magic Banana

I am a member!

I am a translator!

Hors ligne
A rejoint: 07/24/2010

'/' is the root of the system. Your home directory is not directly at the root of the system. That is you error. Here is a right command:
$ chown -R john:john ~/Photos/100NIKON
I use "~" which denotes your home directory. It is "/home/john" if you are using the system with the "john" account.

akirashinigami

I am a member!

I am a translator!

Hors ligne
A rejoint: 02/25/2010

You can do this without even opening a terminal window. Just select all the pictures, right click, choose Properties, go to the Permissions tab, and set the permissions however you want them.

Chris

I am a member!

Hors ligne
A rejoint: 04/23/2011

:) Much better explanation. This is exactly what I'm talking about above (in the other thread). Telling a user to open a terminal is never going to fly with less technical users yet it is the default explanations we all give. We have assumed people can figure out the terminal. Now it is true most new users are at least this capable right now... but what about tomorrow? Right clicking and changing the permissions *is* be a better solution for the less technical user. Though it would be ideal if the defaults were to set different so that the files had read/write permissions rather than read-only permissions by default. In any case though... you got to start somewhere. And simpler explanations is a good start.

theblackpig

I am a member!

Hors ligne
A rejoint: 09/13/2012

I'm not afraid of using a terminal but My ignorance is usualy finding and using the correct path.
However it is gratifying that such a simple problem should elicit such generous help from forum members.

theblackpig

I am a member!

Hors ligne
A rejoint: 09/13/2012

That doesn't work, selecting all the pictures and right clicking the permissions tab is 'greyed' out

onpon4
Hors ligne
A rejoint: 05/30/2012

That's probably because you're not the owner, which means you need to do it as root. You can do this by running "gksudo nautilus" (assuming you're using GNOME) and browsing over to the folder, then change the owner in the permissions tab to you. Or you could use chown with sudo.

Luther
Hors ligne
A rejoint: 12/11/2010

Assuming you're already the owner, you need to cd to the directory with the pictures and use this command:
chmod -c u+w *