This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Permission on USB drive


On 07/31/2009 04:15 AM, Morten KjÃrulff wrote:
Hi,

These files:

$ ls -l
total 69892
-rwxr-xr-x 1 ???????? ???????? 2753883 Jul 27 20:41 20090725-0926-IMG_0610.JPG
-rwx------ 1 ???????? ???????? 2865345 Jul 25 09:29 20090725-0929-IMG_0611.JPG

<snip>


are pictures from a camera, which I copied with google picasa from the
camera to my home computer. Some of the pictures have been edited
(rotated) with picasa. Then I copied them with rsync to my USB drive.
Now I am looking at them from my work computer.

They do not all have the same permissions, which I don't understand.
The differences to not match those that I have edited with picasa (I
am 95% sure). What should I look for?

See <http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-ids> and <http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-files>. The Windows SID for the user from your home machine will not match the user on your work machine. That's expected.

Can I somehow set it up, so the files on the USB is readable on any computer?

Sure. Use 'chmod 644 <files>' or something similar. You have to give the permissions you want to all others to facilitate that. Or you have to change the owner (through 'chown' or Windows "Take Ownership").

Are they unreadable on my work computer because I used a cygwin tool
to copy them to the USB, or is all this pure windows?

No, it a general permissions issue. See above.


If I chown the files to my user on my work computer, I can read them
fine, but then I fear I can't read them at home.

Fear. Uncertainty. Doubt. A Cygwinner feels not these things! ;-)


--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]