[GLLUG] Samba + Linux, FreeBSD, and (sigh) Windows

C. Ulrich dincht at securenym.net
Mon Nov 3 16:58:10 EST 2003


On Mon, 2003-11-03 at 07:33, Melson, Paul wrote:
> First, I apologize if this gets all HTML-ized.  I'm using OWA 
> and can't do anything about it.

No problem. Normally, Evolution will wrap automatically if I select
Format -> Wrap Lines, but it wasn't working for me, so I did it by hand.
:P
 
> The short answer is yes, as long as you're not worried about 
> passwords being stored in plain text.  NT/2K/XP/2K3 all 
> operate under the assumption of cached credentials.  Whatever
> you logged in to the local machine with is what it will want
> to use to authenticate to anything on the network (and
> sometimes the Internet if you let it - ewww!).
> Anyway, the syntax is pretty simple:
>  
> NET USE F: \\[host-or-ip]\[share] /user:[username] [password]
>  
> If you don't specify a drive letter, it will automatically
> pick the next available.  You can also add '/persistent:yes'
> to make Windows remember this share.  However, it won't
> remember the credentials, and Windows will prompt the user
> the next time they try and open the drive (after the locally
> cached credentials fail, I believe).
> Hope that helps!
>  
> PaulM

This basically looks like a command-line version of the same thing that
I was doing in the GUI. So I guess the only way to do what I want to do
is create a batch file or something that gets run on each logon. I don't
relish the idea of storing the password in plaintext (even in a
Windows-encrypted file), but maybe I can hack up a quick program to at
least obfusicate it like FreeBSD's "smbutil crypt" does.

...Found the source for the "simplecrypt" algorithm from FreeBSD's smbfs
and it looks like I won't have to do much of anything to make it work
under Windows. Yes, I like making work for myself. Thanks, Paul!

Charles Ulrich



More information about the linux-user mailing list