This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

NTSEC & ntwrk drives?; "chown/chmod/ls -l" only wrkg on local drives


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]