Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-28-2011, 01:07 PM   #1
LQ Newbie
Registered: Oct 2010
Posts: 4

Rep: Reputation: 0
"Permanently" mapping a drive in Vista Home to SAMBA Network Share Help

OK, this is really little to do with Linux, as my question really involves my Vista Home machines.
Anyone know good methods to have Windows Vista (Home Edition) machines stay mapped to a SAMBA share on a Linux server? I'm using user-level security on the server (Ubuntu Server 10.10), and it (generally) works really well, but I can't get the rest of my family to use it, as (understandably), they don't want to have to type in their password to the share every time they log in to the Vista machines (or my one XP machine left, for that matter), plus the problems when it occasionally decides it's already tried to connect once and failed, and refuses to "restore" the connection, ugh.
I currently have one Win7 machine, and surprisingly, with the Win7 Home Premium edition, it actually "remembers" the passwords to the SAMBA shares.

Perhaps I could script it or something, I dunno.
Old 01-28-2011, 01:46 PM   #2
LQ Newbie
Registered: Sep 2005
Location: West Hartford, CT
Distribution: Ubuntu
Posts: 19

Rep: Reputation: 2
You can script it.

 C:\>net use /?
The syntax of this command is:

[devicename | *] [\\computername\sharename[\volume] [password | *]]
        [/USER:[dotted domain name\]username]
        [/USER:[username@dotted domain name]
        [[/DELETE] | [/PERSISTENT:{YES | NO}]]

NET USE {devicename | *} [password | *] /HOME

From there you should be able to write a batch script to auto mount the drives on startup. Just remember the password will be visible in plain text.

Why not allow everyone +rw access to the drives, and restrict which machines can access SAMBA?
1 members found this post helpful.
Old 01-29-2011, 11:56 AM   #3
LQ Newbie
Registered: Oct 2010
Posts: 4

Original Poster
Rep: Reputation: 0
The suggestion about the access setup might be a good idea for the "shared" share that everyone can access. But each user also has their own personal share, and understandably, my kids will want to be able to keep at least some of their personal things at least out of the reach of their sibling, though of course my wife and I can still access them.
If scripting it is the only way, if I could use a WSH VBScript, I could at least encode it, which would keep them or other casual snooper from easily reading the passwords, at least until they get technically savvy enough to find a decoder for it.

Last edited by Brewmaster619; 01-29-2011 at 11:58 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
samba - windows files lose "created on" date stamp when moved to samba share on linux jaredk51 Linux - Software 5 02-19-2010 04:13 PM
network share drive mapping bibekchhatoi Linux - Networking 2 11-17-2009 12:08 PM
linux equivalent of "mapping network drive"? malangbaba Linux - Networking 3 09-12-2007 12:32 AM
Permanently mapping a Windows network share gvaught Linux - Networking 7 05-28-2004 10:14 PM
Is it possible to "permanently" mount samba shares? soren625 Linux - Software 1 05-13-2004 01:55 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:27 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration