delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/12/06/19:03:42

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <493B12AE.5FA4A616@dessent.net>
Date: Sat, 06 Dec 2008 16:02:54 -0800
From: Brian Dessent <brian AT dessent DOT net>
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: all files seems to be owned by the actual user
References: <ghf1ei$lmn$1 AT ger DOT gmane DOT org>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT 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

Matthias Meyer wrote:

> Another strangely effect is that "ls -alnh /" lists all files as owned by
> the actual user.
> If I do that as another user the files will also be listet as owned by him,
> the user who runs the ls.
> 
> What is the reason for that?

You instructed Cygwin to not read or write any ACLs by setting nontsec. 
It has to fill in those fields with something so it just lists whatever
the current user is as the owner (just as it would have had to do with a
filesystem like FAT or an OS like Win95 that doesn't record an owner.)

> Is there a possibility to backup the files from different users (e.g. with
> rsync) and restore them with the same owner and permissions which they have
> at backup time?

Certainly not with nontsec in effect.

Brian

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

- Raw text -


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