Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: tad1214 on January 21, 2008, 09:20:13 PM
-
I added the smeserver logon script contrib. Now my users home drives don't automatically mount.
http://mirror.contribs.org/smeserver/contribs/jbennett/sme7/loginscript/RPM/smeserver-loginscript-0.2-8.noarch.rpm
What happend? I don't see how the drive would be automatically mounted in this. How can I fix this?
Thanks!
-=Tom
My netlogon.bat is
@REM #------------------------------------------------------------
@REM # DO NOT MODIFY THIS FILE! It is updated automatically by the
@REM # e-smith server and gateway software. Instead, modify the source
@REM # template in the /etc/e-smith/templates-custom directory. For more
@REM # information, see http://www.e-smith.org.
@REM #------------------------------------------------------------
@ECHO OFF
REM ******************************************************
REM ** Mapping a drive to the home folder triggers the **
REM ** generation of the login script. Windows NT/2K **
REM ** does this automatically but we need to map the **
REM ** drive manually for the others. **
REM ******************************************************
IF "%OS%"=="Windows_NT" GOTO :SkipHomeMapping
NET USE z: /home
:SkipHomeMapping
REM Call the generated login script from the user's home folder:
CALL z:\netlogon.bat
@REM #------------------------------------------------------------
@REM # TEMPLATE END
@REM #------------------------------------------------------------
-
You don't need the contrib, if your needs are simple
http://wiki.contribs.org/SME_Server:Documentation:Administration_Manual:Chapter7#Setting_up_network_drives
-
Does this support #ifg and #ifu ? We need per user, per group, and per pc support.
-
netlogon is just a text file, type whatever you need
-
tad1214
You need to have the loginscript rpm installed to support #ifg and #ifu tags.
With Windows 2000 workstations, I add this to the end of the server manager Modify Windows login script panel. Note that the home drive letter is selected as Z: in the menu box.
net use H: /home
net use /delete Z: /yes
-
This contrib works fine for me, there's an example file on how to configure it too.
-
would you have a link for that? Or is that the one that has a link saying click here for a better explination?
-
would you have a link for that? Or is that the one that has a link saying click here for a better explination?
If you installed the netlogon rpm then it's in there already ... look around.
Look under "Login Script Manager" then you will see this ....
Modify Windows login script
Below you can modify the login script template.
You can use special tags '#ifg groupname1, groupname2...', '#ifu username1, username2...', '#ifm machinename1, machinename2...', '#ifa archtype1, archtype2...' and '#endif' to create blocks of script that are only included if those criteria are met.
See this example to get a better idea.
Click on the example and you will see this ...
Example Login Script
Below is an example login script which utilises all of the special '#ifx' tags:
@ECHO OFF
ECHO Welcome to the XYZ computer network
ECHO -----------------------------------
ECHO.
#ifg finance, receipting
REM Map financedata iBay for finance and receipting groups:
NET USE F: \\server\financedata
#endif
#ifu fred
REM Say hello to Fred
ECHO Hello Fred!
#endif
#ifm fast-pc, speedy, killer-p3
REM Map the IT printer for the above named computers:
NET USE LPT1: \\server\itprn
#endif
#ifa Win95, WinNT
REM Run a virus update check on the Windows NT and 9x PCs:
call \\server\utils\files\virus\update.bat
REM The available Architectures are:
REM WinNT = Windows NT or 2000
REM Win95 = Windows 95 or 98
REM WfWg = Windows for Workgroups
#endif
The netlogon.bat you have won't work ... don't try and use the windows type format with this setup.
The netlogon front page has a choice of what you want the home drive to be .. let it control the home drive.
As for the rest play around with it till you get the setup you need .... and remember the netlogon will only work if you log into the domain ... it won't work on Windows home ed or Vista home etc.
Hope this helped.
Regards
Tib.
-
That was the file I was thinking of. I don't know what the deal was. No matter what I did in the loginscrip manager, I couldn't get it to catch. So I reinstalled with 7.3 (I had about 1 hour of work into the server so no big deal) and reinstalled the contrib, worked great. Something I messed up I am sure :-)
-
tad1214
So I reinstalled with 7.3 .... and reinstalled the contrib,
Simply uninstalling the rpm and then reinstalling it should have been sufficient. No need to reinstall the operating system.
rpm -e smeserver-loginscript
Download the rpm
yum localinstall smeserver-loginscript-0.2-8.noarch.rpm