[Samba] netlogon.bat issues

David Christensen David.Christensen at viveli.com
Thu Aug 20 10:30:44 MDT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I have samba configured so that users have their own netlogon.bat file
(e.g. %U.bat) and each user has a .bat with their username in the
netlogon share.

So far I have been unable to get any of the shares that I have defined
in the batch file to be mounted when a user logs in.  Here is a snapshot
of both the netlogon section of my smb.conf file and the %U.bat file I
am using:

smb.conf:

[global]
.......
preexec = /usr/local/bin/netlogon %U
logon script = %U.bat
logon home = \\%L\%U\.profiles
logon path = \\%L\profiles$\%U
logon drive = Z:

........

[netlogon]
path = /mnt/samba/netlogon
admin users = root, Administrator, Admin
valid users = %U
read only = no
browsable = no
create mask = 0770
force create mode = 0060
create directory mask = 0770
force directory mode = 0070
security mask = 0777
directory security mask = 0777

%U.bat:
@echo off
REM # In this example it is assumed the smb.conf handles home drive mapping
REM # All users get access to Common drive
net use Y: \\192.168.155.20\common


REM # Lastly lets set the davidc's time to 192.168.155.20's time
net time \\192.168.155.20 /set /yes
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkqNejQACgkQ5B+8XEnAvqvTiwCgjw5vNv34vE8m0dAIwUmbaw0Q
Og8AnRKHI73Lo4T8Tasw6DHd6YPwwBOX
=svIZ
-----END PGP SIGNATURE-----


More information about the samba mailing list