I have now configured the samba and now is the setup starting.
But it takes nearly 8 minutes until the setup prompt is shown.
Because I am not a linux expert there can be one or two little mistakes. I trie to discribe my samba setup.
first installed the samba
sudo apt-get install samba -y
then save the config
sudo mv /etc/samba/smb.conf /etc/samba/smb.orig
create a new config
sudo gedit /etc/samba/smb.conf
(yes I need a little bit gui support)
then I created a smbuser and gave him a password
sudo useradd -s /bin/false smbuser sudo smbpasswd -a smbuser
my smb.conf file
[global] workgroup = smb security = user map to guest = never [homes] comment = Home Directories browsable = no read only = no create mode = 0750 [Windows10] valid users = smbuser #Wir beschränken den Zugriff auf den User ''smbuser'' #valid users = @smbusers #Alternativ kann auch auf eine Benutzergruppe eingeschränkt werden path = /images/os/mswindows/10Pro-x64/ public = no writable = yes comment = Windows 10 Setup-Ordner printable = no guest ok = no create mask = 0600 directory mask = 0700
then I assigned the smbuser to my directory and gave him rights
sudo chown -R smbuser:smbuser /images/os/mswindows/10Pro-x64/ sudo chmod 700 /images/os/mswindows/10Pro-x64/
and at least I restarted the smb
sudo systemctl restart smbd.service
I customized the startnet.cmd(WinPE) for my smbuser and thats it.
I have run a test installation on my old client and it completed successfully.
But the start of my setup takes realy long…
Did anybody see a mistake or has a optimization for me?
(I found the discription for the samba in the german Thomas-Krenn-Wiki: https://www.thomas-krenn.com/de/wiki/Einfache_Samba_Freigabe_unter_Debian and https://www.thomas-krenn.com/de/wiki/Samba_Freigabe_mit_Authentifizierung )