delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/02/22/13:32:48

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <a80482d0802221032t65ce5184x50c1da849fb7dbbc@mail.gmail.com>
Date: Fri, 22 Feb 2008 18:32:01 +0000
From: "Marc Girod" <marc DOT girod AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: chmod o-r woes...
MIME-Version: 1.0
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

Hello,

I read: http://cygwin.com/faq/faq-nochunks.html#faq.using.chmod
and: http://cygwin.com/cygwin-ug-net/ntsec.html,

and still do not understand...
I am unable to remove the read right for world (and group) from .netrc.

~> export CYGWIN=ntsec
~> chmod -c o-r .netrc
mode of `.netrc' changed to 0640 (rw-r-----)
~> ls -la .netrc
-rw-r--r-- 1 emagiro Domain Users 54 Feb 21 11:33 .netrc
~> getfacl .netrc
# file: .netrc
# owner: emagiro
# group: Domain Users
user::rw-
group::r--
other:r--
mask:rwx
~>

I installed cygwin 'for myself' as I did not have admin rights on this box
(which I got later).
I built the /etc/passwd and /etc/group with the utilities and the -l -d
options (takes hours on my network...)
mkpasswd is in fact still pending, so that I use a temp version of it,
in which I had a 'local' entry for myself:

etc> grep emagiro passwd*
passwd:emagiro:unused_by_nt/2000/xp:654351:10513:emagiro,U-EEMEA\emagiro,S-1-5-21-507921405-1897051121-725345543-644351:/cygdrive/h:/bin/bash
etc> id
uid=654351(emagiro) gid=10513(Domain Users)
groups=544(Administrators),545(Users),552997(DATA-G-AdvancedCopper-R)
...

[I truncated]
I ran cygcheck -c and -s and could not see anything wrong.

What can I do to fix my environement, or even to diagnose what's wrong?
strace chmod...?

Marc

--
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