delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/09/22/12:40:45

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
Date: Thu, 22 Sep 2005 12:39:48 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Dave Korn <dave DOT korn AT artimi DOT com>
cc: cygwin AT cygwin DOT com
Subject: RE: use a NAS-drive in cygwin
In-Reply-To: <SERRANOWOxbCJnEMzAU000001d9@SERRANO.CAM.ARTIMI.COM>
Message-ID: <Pine.GSO.4.63.0509221238130.11579@slinky.cs.nyu.edu>
References: <SERRANOWOxbCJnEMzAU000001d9 AT SERRANO DOT CAM DOT ARTIMI DOT COM>
MIME-Version: 1.0

On Thu, 22 Sep 2005, Dave Korn wrote:

> ----Original Message----
> >From: Christian Buhtz
> >Sent: 22 September 2005 16:54
>
> > On Thu, 22 Sep 2005 15:49:02 +0100, Dave Korn wrote:
> >> ls -lart //server/share/subdir/
> >
> > Great! It is so easy.
> >
> > But how can I access the samba if it is passwordprotected?
> >
> > I could login with my windows explorer. But I do not want this way.
>
>   The only way I know to do that would be with the "net use" command,
> which can be called from the command line,
>
> net use \\\\server\\share /U:DOMAIN\\UserName "password"

Or "net use '\\server\share' '/U:DOMAIN\UserName' 'password'"...

> (Or you can omit the password and will be prompted to enter it at the
> keyboard).

Actually, you can't omit it, you have to specify '*' as the password
(i.e.,

net use '\\server\share' '/U:DOMAIN\UserName' '*'

will prompt for the password).

> Note I doubled-up all the backslashes there to escape them, since "net"
> is a 'doze command, not a cygwin one, and therefore only understands
> back-slashes in UNC paths.

HTH,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

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