X-Spam-Check-By: sourceware.org
Message-ID: <456CC08B.502@cygwin.com>
Date: Tue, 28 Nov 2006 18:04:43 -0500
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh@cygwin.com>
Reply-To: cygwin@cygwin.com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.8) Gecko/20061108 Fedora/1.5.0.8-1.fc4.remi Thunderbird/1.5.0.8 Mnenhy/0.7.4.0
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: directory permissions problem with net use
References: <loom.20061128T231450-174@post.gmane.org>
In-Reply-To: <loom.20061128T231450-174@post.gmane.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Dave Sinclair wrote:
> If I ssh (as root) into my Windows 2003 box running Cygwin and then in the 
> Cygwin shell create a network share, then things don't quite work as I 
> expected..
> 
> root@brandy /
> $ net use s: \\\\beech.mydomain.com\\svctools
> The command completed successfully.
> root@brandy /
> $ df
> Filesystem           1K-blocks      Used Available Use% Mounted on
> C:\cygwin\bin         78148160  11690696  66457464  15% /usr/bin
> C:\cygwin\lib         78148160  11690696  66457464  15% /usr/lib
> C:\cygwin             78148160  11690696  66457464  15% /
> c:                    78148160  11690696  66457464  15% /cygdrive/c
> d:                      389140    389140         0 100% /cygdrive/d
> df: `/cygdrive/s': Permission denied
> 
> Curiously, you can cd into subdirectories on the S: drive, but you can't list 
> the root directory on S:
> 
> root@brandy /
> $ cd /cygdrive/s
> 
> root@brandy /cygdrive/s
> $ ls
> ls: cannot open directory .: Permission denied
> 
> root@brandy /cygdrive/s
> $ cd perl
> 
> root@brandy /cygdrive/s/perl
> $ ls
> docs                                   tc
> 
> 
> which seems a bit weird....   if you go to the S: drive in an native windows 
> command box, then dir S:  works fine.....
> 
> Can anyone spot what I'm doing wrong?  Why is permission denied in 
> the /cygdrive/s directory even though one can cd into its subdirectories?
> many thanks


Specify the user name and password to "net use"?  If this is not it, we
need 'cygcheck -srv' output, your '/etc/passwd' and '/etc/group' entries for
'root', and whether you ssh in with password or public key authentication.
The former should work.  The latter requires the user name and password
supplied to "net use" as I mentioned above.


-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

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

