delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/02/27/21:00:15

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Thu, 27 Feb 2003 21:00:01 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Andrew DeFaria <ADeFaria AT Salira DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Permission bits
In-Reply-To: <3E5E9DDB.8000103@Salira.com>
Message-ID: <Pine.GSO.4.44.0302272055350.25599-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

On Thu, 27 Feb 2003, Andrew DeFaria wrote:

> I really wish I understood Windows security and ACLs, etc and how they
> map or don't map to Cygwin's Posix file permissions but alas I don't.
> Can somebody explain to me the following:
>
> On my Windows XP box at home I can easily manipulate permissions:
>
> [Home XP]: touch file
> [Home XP]: ls -l file
> -rw-rw-r--    1 Andrew   DeFaria         0 Feb 27 15:13 file
> [Home XP]: chmod 777 file
> [Home XP]: ls -l file
> -rwxrwxrwx    1 Andrew   DeFaria         0 Feb 27 15:13 file*
>
> However on my work XP box:
>
> [Work XP]: touch file
> [Work XP]: ls -l file
> -rw-r--r--    1 adefaria Domain U        0 Feb 27 15:18 file
> [Work XP]: chmod 777 file
> [Work XP]: ls -l file
> -rw-r--r--    1 adefaria Domain U        0 Feb 27 15:18 file
>
> Now I'm wondering why I can chmod here?!? The only difference that I see
> is that at home my home directory is simply on my C drive and I'm not in
> a domain while at work my home directory is mapped from a server to my H
> drive. I know that this oddity is happening because Windows permissions
> are not equal to Posix permissions and I've tried everything I know how
> to do to get Windows to allow me to open up the permissions from a Posix
> perspective. Anybody know how I could get it so that a chmod 666 file
> will actually yield me a rw-rw-rw mask?

Andrew,

I have experienced similar symptoms on SAMBA drives.  Try comparing the
output of "id" with the numbers in the "ls -ln" output.  I have a feeling
either your /etc/passwd is not up to date on your work machine (i.e., you
forgot to do "mkpasswd -d -u adefaria >> /etc/passwd"), or you log in as a
different user than the one that owns the file (e.g., you log in as a
local user, and the file is owned by the domain user [possibly with the
same name]).
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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