[Samba] Logon Script

Jay Ts jay at jayts.cx
Fri Aug 23 14:44:01 GMT 2002

On Fri, Aug 23, 2002 at 03:52:28PM -0700, Barry deFreese wrote:
> One thing that you can to is set their home directory in the 
> users profile and then do a net use h: /home.

You just need two things. Along with "net use h: /home" in the logon.bat
file, add this line to the smb.conf file:

		logon home = \\your-server's-NetBIOS-name\%u

That is what set's the Windows home directory location on the
Samba server.

Jay Ts
author, Using Samba, 2nd edition

> On Friday 23 August 2002 03:47 pm, Paul Soulek wrote:
> > I volunteer at a school, where we recently installed Linux on a server,
> > and we run SAMBA. I have a logon script, that makes use of the "net use"
> > command in Windows to map the network drives when a user logs on.
> >
> > Here is what it looks like (from memory, I'm not at school now)
> >
> > net use h: \\SERVERNAME\**USERNAME**
> > net use s: \\SERVERNAME\dropbox
> > net use r: \\SERVERNAME\public_folder
> >
> > I can get the last two commands to work, but how can I get Windows to
> > give me the username as a variable? I tried %U (which is the Linux
> > variable), but what would I insert? Each user has their own home share
> > that I want to map. Thank you!
> >
> > Paul in Minnesota

More information about the samba mailing list