Hello list, well, I managed to set up Samba 2.07 to pass on a startup script to our Win 9x clients during logon. Scripts execute, shares are mounting. I have run into a dead end with the home directory however. I want to mount \\servername\home\username to a drive letter. Does Win9x pass on the username in a variable, that can be used in a logon script? I've tried all varieties e.g. "net use H: \\servername\%u", etc... Or maybe it's not possible at all? Cheers from Munich, Volker
Hi, If I'm not mistaking you should use for win98: net use h: /home> -----Original Message----- > From: samba-admin@lists.samba.org > [mailto:samba-admin@lists.samba.org]On > Behalf Of Volker.Manns@remag.de > Sent: 23 octobre, 2001 16:25 > To: samba@lists.samba.org > Subject: Automatically mounting user's home directory > > > Hello list, > > well, I managed to set up Samba 2.07 to pass on a startup > script to our Win > 9x clients during logon. Scripts execute, shares are mounting. > > I have run into a dead end with the home directory however. > > I want to mount \\servername\home\username to a drive letter. > > Does Win9x pass on the username in a variable, that can be > used in a logon > script? > > I've tried all varieties e.g. "net use H: \\servername\%u", etc... > > Or maybe it's not possible at all? > > Cheers from Munich, > > Volker > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >
I got around this by creating a perl script to parse the /etc/passwd file on my machine and create login scripts for people. I e-mailed it to someone on the list and they wrote a wrapper? for smbpasswd that ran a similar script after doing an smbpasswd -a. One of the advantages is that I can create different scripts for different users based on user, group, or any other section in the passwd file. Disadvantages are that I have to manually execute it as root, and it creates a login script for every user every time it's executed (if you manually edit any, you have to be careful of this script). Chris Tooley On Tue, 2001-10-23 at 15:24, samba-admin@lists.samba.org wrote:> Hello list, > > well, I managed to set up Samba 2.07 to pass on a startup script to our Win > 9x clients during logon. Scripts execute, shares are mounting. > > I have run into a dead end with the home directory however. > > I want to mount \\servername\home\username to a drive letter. > > Does Win9x pass on the username in a variable, that can be used in a logon > script? > > I've tried all varieties e.g. "net use H: \\servername\%u", etc... > > Or maybe it's not possible at all? > > Cheers from Munich, > > Volker > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba
At 10:24 PM 10/23/01 +0200, Volker.Manns@remag.de wrote:>Hello list, > >well, I managed to set up Samba 2.07 to pass on a startup script to our Win >9x clients during logon. Scripts execute, shares are mounting. > >I have run into a dead end with the home directory however. > >I want to mount \\servername\home\username to a drive letter. > >Does Win9x pass on the username in a variable, that can be used in a logon >script?Must be thousands of solutions to this, mine was to create a Samba share: [myhome] comment = Personal home directory for %U path = %H public = no writable = yes create mask = 640 directory mask = 750 Then I just set all the Windows boxes to mount \\server\myhome as drive L: whenever somebody logs in. This is also good for configuring programs on the windows boxes (e.g. Netscape looks for all its config files in L:\Netscape_Profile, but stores its cache in C:\temp\cache, the default documents folder is L:\Documents, etc.). -- "I've always wanted to be somebody. Next time I'll be more specific."