[Fwd: FW: [SLUG] Need command to mount linux drives onto NT clientsduring NT logon]

From: Peter S. (Linux@myraandpete.net)
Date: Fri Apr 11 2003 - 22:01:27 EDT


At work, I have this put into a script (batch file) for each department. Maps to a person folder for each person, as well as any shared folders that
security group might have. In their user profile, I setup a "U" drive that will go to "\\filesrv\users", as well as listing their batch file
(for their department). The two lines at the end, run several pieces of software... one that runs some auditing on system properties, software,
etc. (each Friday.. by Blue Ocean Software), and the other is a *.js script that I needed (some silly project that my boss created.. to find out what printer
resources each user is using). Something similar will probably will work in your environment, as well

Pete

net use u: /home
net use i: \\filesvr\infosvc
net use k: \\filesvr\samisdb
net use l: \\filesvr\helpdesk
net use x: \\filesvr\public
Start \\appsvr\track-it\audit32.exe
Start \\Filesvr\Public\zlistprintermappings.js

-----Original Message-----
From: slug@lists.nks.net [mailto:slug@lists.nks.net]On Behalf Of John
Clay
Sent: Thursday, April 10, 2003 10:57 AM
To: icblenke@nks.net
Cc: South- Florida Linux Users Group
Subject: Re: [SLUG] Need command to mount linux drives onto NT
clientsduring NT logon

This works exactly as you describe Ian. Pilot Error on my part.

Thanks.

On Wed, 2003-04-09 at 17:26, Ian C. Blenke wrote:
> 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).



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