Re: [SLUG] Need command to mount linux drives onto NT clients during NT logon

From: Ian C. Blenke (icblenke@nks.net)
Date: Wed Apr 09 2003 - 17:26:12 EDT


On Wednesday 09 April 2003 15:10, John Clay wrote:
> I need for my NT client logon.bat file to mount (map) a linux drive for
> each Windows user at logon. I've tried the net use command like so:
>
> net use S: \\MARIGOLD\home\testdir /y

I don't believe you can map a drive letter to a subdirectory of a mountpoint,
just the mountpoint itself (unless you're using Microsoft's DFS stuff):

If you're logged into your Windows account with the same username/password set
on the SAMBA side, you can simply do:

        net use S: \\MARIGOLD\home

If you need to use a different username on the SAMBA side, you can insert
"yourusername" as follows:

        net use S: \\MARIGOLD\home /user:yourusername

If you want the drive mapping to persist between reboots, you will want to set
this flag as well:

        net use S: \\MARIGOLD\home /user:yourusername /persistent:yes

and you can delete the drive letter mapping with:

        net use S: /d

Also, never forget "nbtstat", it's a useful command for finding machines on
your network and troubleshooting NetBIOS naming issues:

        nbtstat -A 192.168.1.2
        nbstat -a MARIGOLD

> Where MARIGOLD is a linux samba box with the share /home/testdir. I can
> browse MARIGOLD and get to /home/testdir via Windows Explorer.
>
> Any ideas what I'm doing wrong?

Try not to map to a directory below a share and see if that helps. Only via
Microsoft's DFS can you do freaky things like this - and you're on your own
in this case (I've really bare touched DFS, and never with SAMBA/SAMBA-TNG).

-- 
- Ian C. Blenke <icblenke@nks.net>

(This message bound by the following: http://www.nks.net/email_disclaimer.html)



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:03:03 EDT