delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/12/19/14:50:37

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
Date: Thu, 19 Dec 2002 13:51:02 -0600
Message-Id: <200212191951.gBJJp2G32730@tigris.pounder.sol.net>
X-Authentication-Warning: tigris.pounder.sol.net: rodmant set sender to nicebounce AT trodman DOT com (Tom Rodman) using -f
To: cygwin AT cygwin DOT com
X-note: 1G0!G/usr/sbin/sendmail -v -t -f"nicebounce AT trodman DOT com (Tom Rodman)" # for less traceable mail
From: nicebounce AT trodman DOT com (Tom Rodman)
Subject: NTSEC & ntwrk drives?; "chown/chmod/ls -l" only wrkg on local drives
Mime-Version: 1.0

--------
chown,chmod and ls -l work just fine on local drives, but
not on network drives. 

My "/tmp" is on the local c drive,
and "/cygdrive/s" is a network drive on our NT4.0 SP6A PDC;
all commands below done on a NT6.0 SP6A workstatation in the 
same domain as the PDC.

  /tmp $ id -un
  adm_tsr
  /tmp $ groups
  ES_staff.gbl Administrators Domain Users ES_admin.gbl Users ccm_users.gbl
  /tmp $ for dir in /tmp /cygdrive/s ; do
  > cd $dir ; rm -f foo; touch foo; chown adm_ds foo
  > ls -l foo
  > echo $(getowner foo) # see http://peter.verhas.com/progs/c/nt/owner/
  > rm -f foo
  > done
  -rw-rw-r--    1 adm_ds   ES_staff        0 Dec 19 13:35 foo
  adm_ds
  -rw-r--r--    1 adm_tsr  ES_staff        0 Dec 19 13:35 foo
  Administrators

For /cygdrive/s/foo, chown silently failed and ls -l foo
said "adm_tsr" owned foo when "Administrators" was the real owner.

What am I missing?  Is there a fix for this, or do I have an
incorrect config setting?  I have included more background info below.

--
thanks/regards,
Tom Rodman
perl -e 'print unpack("u", "\.\=\$\!T\<F\]D\;6\%N\+F\-O\;0H\`");'

--v-v------------------C-U-T---H-E-R-E-------------------------v-v--
(Were running NT4.0 SP6A)

background on my setup {

  /cygdrive/s $ cygcheck -sv|egrep '^s: ' # to show s is a network drive
  s:  net NTFS   64456Mb  73% CP CS UN PA FC     I:\SCM == S Mnt PT
  s:              /drv/s     system  binmode
  /cygdrive/s $ uname -a
  CYGWIN_NT-4.0 WS011206 1.3.17(0.67/3/2) 2002-11-27 18:54 i686 unknown
  /cygdrive/s $ echo $CYGWIN ; cd /tmp
  binmode tty ntsec
  /tmp $ egrep 'adm_tsr|adm_ds' /etc/passwd|fold
  adm_ds:unused_by_nt/2000/xp:11061:11068:Dennis Schneider,U-SP.CG.JCI.COM\adm_ds,
  S-1-5-21-2133283647-1515675855-1238779560-1061:/user/build:/bin/bash
  adm_tsr:unused_by_nt/2000/xp:11487:11068:Tom Rodman,U-SP.CG.JCI.COM\adm_tsr,S-1-
  5-21-2133283647-1515675855-1238779560-1487:/user/adm_tsr:/bin/bash

  /tmp $ xcacls .
  c:\aut\cyg\tmp Everyone:F
                 Everyone:(OI)(CI)(IO)F

  /tmp $ cd /cygdrive/s; xcacls .
  s:\ SP.CG.JCI.COM\ES_admin.gbl:(OI)(IO)F
      SP.CG.JCI.COM\ES_admin.gbl:(CI)F
      SP.CG.JCI.COM\ES_admin.lcl:(OI)(IO)F
      SP.CG.JCI.COM\ES_admin.lcl:(CI)F
      SP.CG.JCI.COM\ES_staff.gbl:(OI)(IO)F
      SP.CG.JCI.COM\ES_staff.gbl:(CI)F
      SP.CG.JCI.COM\ES_staff.lcl:(OI)(IO)F
      SP.CG.JCI.COM\ES_staff.lcl:(CI)F
      NT AUTHORITY\SYSTEM:(OI)(IO)F
      NT AUTHORITY\SYSTEM:(CI)F
      Everyone:(OI)(IO)(special access:)
                       GENERIC_READ
                       GENERIC_EXECUTE

      Everyone:(CI)R
      SP.CG.JCI.COM\build:(OI)(IO)(special access:)
                                  GENERIC_READ
                                  GENERIC_EXECUTE

      SP.CG.JCI.COM\build:(CI)R
  /cygdrive/s

}


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