Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Dave Korn" To: Subject: RE: use a NAS-drive in cygwin Date: Thu, 22 Sep 2005 17:23:22 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit In-Reply-To: Message-ID: ----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 you can omit the password and will be prompted to enter it at the keyboard). 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. cheers, DaveK -- Can't think of a witty .sigline today.... -- 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/