Creating a Mapped SMB drive to a Linux Share so I can send a file to it from a website.
  1. Step 1: Create the Linux Share«
  2. Step 2: Create the SMB Mapped Drive«
  3. Step 3: Remove the SMB Mapped Drive.«
Step 1: Create the Linux Share
Navigate to
nano /etc/samba/smb.conf
CFFCS | CarrzSynEdit: | SQL Script
[Linux05-Web]
    comment = Linux05 Inetpub
    path = /srv/
    valid users = linux05
    browsable = yes
    guest ok = yes
    read only = no
    writeable = Yes
    write list = linux05
    create mask = 0664
    directory mask = 0755
    force user = www-data

Step 2: Create the SMB Mapped Drive
Copy, Edit, and then run it on your Windows Server.
CFFCS | CarrzSynEdit: | SQL Script

New-SmbMapping -LocalPath "X:" -RemotePath "\\linux-05\Linux05-Web\srv\web\triggers" -UserName "linux05" -Password "YourLinuxUsersPassWord"

Step 3: Remove the SMB Mapped Drive
To remove the Mapped SMB drive, run this.
CFFCS | CarrzSynEdit: | SQL Script
Remove-SmbMapping -LocalPath "X:"