Warning
Before using this manual, ensure that appropriate dataset is exists and correctly configured (see notes below). Please refer to the separate HowTo “How to work with datasets in Webmin" for details.
Correct parameters for the dataset are:
Property | Value |
---|---|
readonly | off |
owner | nobody:nobody |
mode | 755 |
Open your favorite browser and type following URL: https://IP_ADDRESS:10000, where IP_ADDRESS is a real address of your system.
Login to the Webmin using your credentials.
Status page will be displayed with some details of the system, where Webmin is installed. Left frame shows categories and modules that available for current user.
Expand “Servers” spoiler and click the the “Samba Windows File Sharing” to start configuration of Samba shares.
The initial module page will open and show default shares’ list pre-configureg in Samba server. You can examine any share by clicking on share name link.
To add your own share on the existing dataset click the “Create a new file share” link below the list. Add necessary values requested on that page.
Property “Directory to share” must points to the existing dataset created on allowed storage pool. Entering other values will results error during creating the share.
Click “Create” button at the bottom of Share information box to create the share.
Ensure that the newly created share is shown in the list of shares. Please note, that this share is in read only mode, by default - no data can be written over there until share is configured as writable.
To make the share writable, click on the share’s name in the share’s list.
On the “Edit File Share” window click the “Security and Access Control” icon in the “Other Share Options”
Following values make smb share writable:
Property | Value |
---|---|
Writable | Yes |
Guest access | Guest only |
Guest Unix user | Nobody |
Setup appropriate parameters in the share's security form
Warning
At the moment, only public access to the share is supported. That means everyone who has network access to the server where this smb share is located will be able to access data on the share. To make access to the share more secure, use “Limit to possible list?” option as well as configure “Hosts to allow” and “Hosts to deny” with appropriate values.
Click “Save” button at the bottom of the frame when you are done with configuration, then click “Return to share list” at the bottom of “Edit File Share” page.
Ensure that share’s security is changed to “Read/Write to everyone”
The configuration is completed. We have created a new share and made it writable.
Ensure that Samba server is running on system. Scroll down the main of the Samba Windows File Sharing module and check whether button Start Samba Servers exists - if it does exist, Samba services are not running.
Click the Start Samba Servers button and ensure that start is successful - there are two new buttons Restart Samba Servers and Stop Samba Servers appear
To test the shares configuration, on MS Windows client open the File explorer and enter the URL: \\SERVER_NAME_OR_IP\smb1
To check that share is writable, create a new Folder on this share.
You can modify parameters for the share at any time you wish and in the way similar to description above.
To delete the share open the File Shares list and mark the share which you would like to delete.
Press “Delete Selected Shares” button.
Caution
Be careful with the delete operation as there will be no additional notice before the delete starts!
Delete share does not affect the data located on that share, but delete just sharing itself. To delete the data, you need to destroy the dataset via ZFSMGR Webmin module.
Review the share’s list and ensure that share was deleted successfully.
Done!