initial commit of file from CVS for smeserver-loginscript on Sat Sep 7 20:34:19 AEST 2024
This commit is contained in:
3
root/etc/e-smith/templates/etc/smb.conf/22logondrive
Normal file
3
root/etc/e-smith/templates/etc/smb.conf/22logondrive
Normal file
@@ -0,0 +1,3 @@
|
||||
|
||||
logon drive = { defined($WinNTLogonDrive) ? $WinNTLogonDrive . ':' : 'h:' }
|
||||
|
1
root/etc/e-smith/templates/etc/smb.conf/50homes-preexec
Normal file
1
root/etc/e-smith/templates/etc/smb.conf/50homes-preexec
Normal file
@@ -0,0 +1 @@
|
||||
root preexec = "/usr/local/bin/generate_netlogon /home/e-smith/files/samba/netlogon/netlogon.template /home/e-smith/files/users/%U/home/netlogon.bat %U %m %a %T"
|
@@ -0,0 +1,13 @@
|
||||
@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 { defined($WinNTLogonDrive) ? $WinNTLogonDrive . ':' : 'h:' } /home
|
||||
:SkipHomeMapping
|
||||
|
@@ -0,0 +1,5 @@
|
||||
|
||||
REM Call the generated login script from the user's home folder:
|
||||
|
||||
CALL { defined($WinNTLogonDrive) ? $WinNTLogonDrive . ':' : 'h:' }\netlogon.bat
|
||||
|
@@ -0,0 +1,6 @@
|
||||
@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 #------------------------------------------------------------
|
@@ -0,0 +1,3 @@
|
||||
@REM #------------------------------------------------------------
|
||||
@REM # TEMPLATE END
|
||||
@REM #------------------------------------------------------------
|
Reference in New Issue
Block a user