This file is indexed.

/etc/samba/netlogon/config/standarddrives-students.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
@echo off 
echo.
echo Setting standard DEBIAN EDU Drive Letters:
echo ------------------------------------------
if [%OS%]==[Windows_NT] goto winNT

:win95

::
:: win9x mounts go here
::

rem net use S: %LOGONSERVER%\shared-students

goto:eof

:winNT

::
:: winNT/2k/XP/vista/win7 mounts go here

rem set S_DRIVE=S:
rem set S_SHARE=%LOGONSERVER%\shared-students
rem call :def_mounter_start

goto:eof

:: Only "def" processes below this line!

:def_mounter_start
  set S_DOMOUNT=yes
  net use %S_DRIVE% 2>NUL >NUL
  if [%errorlevel%]==[0] (
    rem echo The drive "%S_DRIVE%" is already mounted
    call :def_mounter_usage
  )
  if [%S_DOMOUNT%]==[yes] (
    call :def_mounter_mount
  )
goto:eof

:def_mounter_usage
  rem net use %S_DRIVE%-find "Öffnungen         0"
  net use %S_DRIVE%|find "ffnungen         0" 2>NUL >NUL
  if [%errorlevel%]==[0] (
    call :def_mounter_unmount
  ) else (
    echo The drive "%S_DRIVE%" is mounted and in use...
    set S_DOMOUNT=no
  )
goto:eof

:def_mounter_unmount
  net use %S_DRIVE% /delete 2>NUL >NUL
  if [%errorlevel%]==[0] (
    echo Unmounted "%S_DRIVE%"
    set S_DOMOUNT=yes
  ) else ( 
    echo Failed to unmount "%S_DRIVE%"
    set S_DOMOUNT=no
  )
goto:eof

:def_mounter_mount
  net use %S_DRIVE% %S_SHARE% /persistent:no 2>NUL >NUL
  if [%errorlevel%]==[0] (
    echo Connected "%S_DRIVE%" to "%S_SHARE%"
  ) else (
    echo Failed to mount "%S_SHARE%" at "%S_DRIVE%"
  )
goto:eof

:: real EOF