delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/07/31/12:44:44

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4A731DFD.4010203@cygwin.com>
Date: Fri, 31 Jul 2009 12:38:21 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Permission on USB drive
References: <d922b6650907310115q5fb1c22dl9e45f5e048dfe78 AT mail DOT gmail DOT com>
In-Reply-To: <d922b6650907310115q5fb1c22dl9e45f5e048dfe78@mail.gmail.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019