Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: greg on April 09, 2006, 08:35:14 AM
-
Hi all,
Is it normal that the /home/e-smith/files/samba/netlogon/netlogon.bat only is run when using roaming profiles?
I have tried with both roaming profiles and non-roaming profiles, and when using the latter, all the settings I've put into netlogon.bat are not put into effect.
I'm using SME7rc1
TIA
/G
-
netlogon.bat only runs when the workstation is joined to the domain and roaming profiles are enabled.
-
Thanks.
Now I just have to change the Windows registry to get rid of the timeconsuming syncro...
/G
-
greg
I have roaming profiles off (I don't like roaming profiles) and the netlogon.bat still works fine.
Regards,
Tib
-
Hi Tib,
Thanks for this. Wierd...
Unfortunately, it does not work in my hands. Disabling the roaming profiles only connects the default samba z:\ drive, and not my netlogon.bat setup...
/G
-
greg
In my netlogon.bat I have this setup
rem To map a home directory to drive h:
net use h: /home
net use z: /delete /yes
the delete line is tha last one
Regards,
Tib
-
Hi Tib,
Thanks.... Still wierd. My netlogon.bat is:
net use o: /home /persistent:no
net use p: \\test\all /persistent:no
net use q: \\test\software /persistent:no
net time \\test /set /yes
net use z: /delete /y
rundll32 printui.dll,PrintUIEntry /dn /n "\\test\Netprinter" /q
rundll32 printui.dll,PrintUIEntry /in /n "\\test\Netprinter" /q
rundll32 printui.dll,PrintUIEntry /y /n "\\test\Netprinter" /q
if I do not use roaming profiles, I will only see the z:\ drive...
/G
-
greg
In my netlogon.bat I have this setup
rem To map a home directory to drive h:
net use h: /home
net use z: /delete /yes
the delete line is tha last one
Regards,
Tib
I think the order in which you do things is (only) important when you want to map the home drive under another driveletter than the default (Z:), as most off the times multiple connections are often prohibited you probably first have to delete the one you don't want and after that map it under the new drive letter, at least that is the way that I do it and that works for me.
Sometimes (on Windows domains, so a non SMEserver domain) I receive an error that a drive is already mapped (using another username) this is caused by problems in disconnecting and connecting drive maps as well.
If your netlogon.bat script runs you can try and put a pause statement at the end of the file so you can see if there are errors in the execution of the login script. This is only a temporary solution as the scripts halts at the end and the window in which it is run, but it remains open so users need to close it manually.
-
good point cactus
The way mine is it still seems to run ok though ... I'll move things around and try that as well ... does make sense.
I've been playing arround with the old e-smith-loginscript-0.2-2.noarch.rpm and I think I have most working but need someone with a bit of rpm knowledge and script knowedge to check it out and re-pak it into an rpm ... I've unpacked the rpm but don't know how to re-pack it.
I fixed up all the links but I'm not sure if some files are required or should be pointed to a diff file etc.
I'f someone wants to have a look at the file let me know ... the file I have is only in tar and not installable ... only for review and only to be unpacked into a temp folder.
I have it working on my test machine with no errors.
This rpm once fixed will take care of the home drive problem.
Regards,
Tib
-
I've been playing arround with the old e-smith-loginscript-0.2-2.noarch.rpm and I think I have most working but need someone with a bit of rpm knowledge and script knowedge to check it out and re-pak it into an rpm ... I've unpacked the rpm but don't know how to re-pack it.
I fixed up all the links but I'm not sure if some files are required or should be pointed to a diff file etc.
In the developer section there is an explanation on how to build RPM's and as you already have a test machine... have a look here: How to create an SME Server package - step by step (http://mirror.contribs.org/smeserver/contribs//gordonr/devguide/html/devguide.html#STEP-BY-STEP-INSTRUCTIONS), section 12 (http://mirror.contribs.org/smeserver/contribs//gordonr/devguide/html/devguide.html#APPLICATION-PACKAGING) handles about packing an RPM.
-
Hi
A small tip which may help:
During the time the windows logon script is running, drive Z: is mapped by windows to NETLOGON.
This is a windows standard for more than 10 years...
Best is, don't use drive Z:
Regards
Andy