delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/07/26/14:48:20

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Message-Id: <200507261847.j6QIlj6e015445@tigris.pounder.sol.net>
To: cygwin AT cygwin DOT com
From: cygwin AT trodman DOT com (Tom Rodman)
Subject: ssh session can't see share permissions; rights for disk share reduced..
Date: Tue, 26 Jul 2005 13:47:44 -0500
X-IsSubscribed: yes

Just upgraded to 1.5.18. Having several problems with
network drives in ssh sessions - problems not seen in 1.5.10
or earlier.  Here they are:

# ******************************************************************** 
# ssh session can not read share permissions w/"setacl"
# ******************************************************************** 
  # -------------------------------------------------------------------- 
  # reference (good/OK) example in console bash session
  # (notice user staffuser1 is in group 'XYZ_ES_ADMIN')
  # -------------------------------------------------------------------- 
  ~ $ uname -a
  CYGWIN_NT-5.0 OurBox120 1.5.18(0.132/4/2) 2005-07-02 20:30 i686 unknown unknown Cygwin
  ~ $ echo $CYGWIN
  binmode tty ntsec smbntsec
  ~ $ id
  uid=15773(staffuser1) gid=16027(XYZ_ES_STAFF) groups=0(root),544(Administrators),19858(ABC_NA-CTX-Notepad-A),10513(Domain Users),16026(XYZ_ES_ADMIN),16027(XYZ_ES_STAFF),16024(XYZ_Users) ,545(Users)
  ~ $ setacl -on '\\OurBox108\scm' -ot shr -actn list -lst 'f:tab;w:o,g,d,s;i:y;s:n'
  \\OurBox108\scm

     DACL(not_protected):
     Everyone   read+SHARE_WRITE+WRITE_OWNER+WRITE_DAC   allow   no_inheritance
     DOMxx1\XYZ_ES_ADMIN   full   allow   no_inheritance

  # -------------------------------------------------------------------- 
  # failing example in ssh bash session
  # -------------------------------------------------------------------- 
  ~ $ uname -a
  CYGWIN_NT-5.0 OurBox120 1.5.18(0.132/4/2) 2005-07-02 20:30 i686 unknown unknown Cygwin
  ~ $ echo $CYGWIN
  binmode tty ntsec smbntsec
  ~ $ id
  uid=15773(staffuser1) gid=16027(XYZ_ES_STAFF) groups=0(root),544(Administrators),10513(Domain Users),16026(XYZ_ES_ADMIN),16027(XYZ_ES_STAFF),16024(XYZ_Users),545(Users)
  ~ $ setacl -on '\\OurBox108\scm' -ot shr -actn list -lst 'f:tab;w:o,g,d,s;i:y;s:n'
  ERROR reading SD from <\\OurBox108\scm>: Access is denied.


# -------------------------------------------------------------------- 
# ssh session does not have proper rights on share //OurBox108/scm
# (can not write)
# -------------------------------------------------------------------- 
  # -------------------------------------------------------------------- 
  # good/OK example in *console* bash session
  # -------------------------------------------------------------------- 
  ~ $ touch //OurBox108/scm/toss.$RANDOM && echo ok
  ok
  # -------------------------------------------------------------------- 
  # failing examples in ssh bash session
  # -------------------------------------------------------------------- 
  ~ $ touch //OurBox108/scm/toss.$RANDOM
  touch: cannot touch `//OurBox108/scm/toss.7620': Permission denied
  ~ $ touch //OurBox108/scm/toss.$RANDOM
  touch: cannot touch `//OurBox108/scm/toss.29272': Permission denied

I would appreciate it if anyone can try the above two cases
and let me know of they work OK for you.

--
Tom Rodman





-- 
minor (3rd) problem:

ssh session does not have proper rights for drive mapped on console
  (I can live with this, but it's a change..)

  I won't go into details, but in an ssh session, try 'ls -l' using a drive letter
  style path for a network drive that is mapped on the console
  (not UNC path), ls does not seem to use /etc/group or /etc/passwd.


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