This file is indexed.

/etc/samba/netlogon/1stlogon/1stlogon.bat is in debian-edu-config 1.702.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
::
:: 1stlogon.bat
::
::    arranges a Debian Edu/Skolelinux windows profile on the first DOMAIN logon
::
@echo off
setlocal enabledelayedexpansion

if %OS%.==Windows_NT. (

    if EXIST %HOMEDRIVE%\ (

	:: Get windows Version numbers
	for /f "usebackq tokens=2 delims=[]" %%G in (`ver`) do (set _version=%%G)

	echo Windows client version: !_version!
	@echo off
	for /f "usebackq tokens=2,3,4 delims=. " %%G in (`echo !_version!`) do (@set _major=%%G & @set _minor=%%H & @set _build=%%I)
	rem @echo on

	echo Major version: !_major!  Minor Version: !_minor!  Build: !_build!

	if "!_major!" == "4 " goto ver_nt
	if "!_major!" == "5 " goto ver_xp
	if "!_major!" == "6 " goto ver_7

	goto warnthenexit
    )
    goto warnnohomethenexit
)
goto ver_9x

:ver_7
:Run Windows 7 specific commands here.

if EXIST "%HOMEDRIVE%\.ntprofile.V2" (
    if not EXIST "%HOMEDRIVE%\.ntprofile.V2\NTUSER.DAT" (
	echo.
	echo #############################################################################
	echo #
	echo # First logon on domain %USERDOMAIN% under Windows 7 [or similar]
	echo #
	echo #############################################################################
	echo.

	echo Setting up your Windows profile... this will take a little while!!!

	echo.
	echo Creating link to homedirectory...
	start %LOGONSERVER%\netlogon\install\shortcut.vbs
	echo.

	echo Setting up proxy of IE...
	regedit /S %LOGONSERVER%\netlogon\registry\proxy-ie\proxy-settings-hkcu.reg
	echo.

	echo Setting up Firefox profile for MS Windows...
	if not EXIST "%HOMEDRIVE%\.mozilla\firefox\debian-edu-windows.default" (
	    mkdir "%HOMEDRIVE%\.mozilla\firefox\debian-edu-windows.default"
	    xcopy "%HOMEDRIVE%\.mozilla\firefox\debian-edu.default\*" "%HOMEDRIVE%\.mozilla\firefox\debian-edu-windows.default" /Y /C /S
	    copy "%LOGONSERVER%\netlogon\mozilla\firefox\prefs.js" "%HOMEDRIVE%\.mozilla\firefox\debian-edu-windows.default\prefs.js"
	)
	cmd /C %LOGONSERVER%\netlogon\mozilla\mkmozapd.bat
	echo.
    )
)


goto exit

:ver_xp
:Run Windows XP specific commands here.

if EXIST "%HOMEDRIVE%\.ntprofile" (
    if not EXIST "%HOMEDRIVE%\.ntprofile\NTUSER.DAT" (
	echo.
	echo #############################################################################
	echo #
	echo # First logon on domain %USERDOMAIN% under Windows XP [or similar]
	echo #
	echo #############################################################################
	echo.

	echo Setting up your Windows profile... this will take a little while!!!
	echo.

	echo Creating link to homedirectory...
	start %LOGONSERVER%\netlogon\install\shortcut.vbs
	echo.

	echo Setting up proxy of IE...
	regedit /S %LOGONSERVER%\netlogon\registry\proxy-ie\proxy-settings-hkcu.reg
	echo.

	echo Setting up Firefox profile for MS Windows...
	if not EXIST "%HOMEDRIVE%\.mozilla\firefox\debian-edu-windows.default" (
	    mkdir "%HOMEDRIVE%\.mozilla\firefox\debian-edu-windows.default"
	    xcopy "%HOMEDRIVE%\.mozilla\firefox\debian-edu.default\*" "%HOMEDRIVE%\.mozilla\firefox\debian-edu-windows.default" /Y /C /S
	    copy "%LOGONSERVER%\netlogon\mozilla\firefox\prefs.js" "%HOMEDRIVE%\.mozilla\firefox\debian-edu-windows.default\prefs.js"
	)
	cmd /C %LOGONSERVER%\netlogon\mozilla\mkmozapd.bat
	echo.
    )
)

goto exit

:ver_9x
:Run Windows 95/98 specific commands here.
echo WARNING: Windows 9x is not handled by Debian Edu / Skolelinux.
goto exit

:ver_nt
:Run Windows NT specific commands here.
echo WARNING: Windows NT is not handled by Debian Edu / Skolelinux.
goto exit

:warnthenexit
echo WARNING: Machine undetermined.
goto exit

:warnnohomethenexit
echo WARNING: HomeDrive is not available.
goto exit

:exit
endlocal