Logic will get you from A to B. Imagination will take you everywhere, Albert Einstein
Turnkey Linux is an open-source project that provides a free library of preconfigured “virtual appliances” built on popular server-oriented open-source software. TurnKey File Server is a relatively user-friendly file server combining Windows-compatible network file shares with a browser-based file manager.
Templates allow you to quickly set up or create containers using TurnKey’s pre-configured software packages, which are designed to be secure and regularly updated.
add your LAN DNS
) or public DNS (e.g., 1.1.1.1) for name resolution.Assign a static DHCP lease on your router for the container’s MAC so its IP never changes. Enable Nesting if you plan to run Docker or other LXC inside.
# You can change the ownership and permissions of your second drive’s shared directory directly from the console inside your Turnkey Linux Fileserver container.
# This is often more reliable than the GUI, especially if you encounter issues with Webmin
chown -R nmaximo7:family /mnt/mydata
chmod -R 775 /mnt/mydata
Clean Up Default Shares & Convert Users. In Webmin web UI, go to Servers, Samba Windows File Sharing. Select all predefined Samba shares (homes, cdrom, storage), and press Deleted Selected Shares to remove defaults.
Under Samba Users, select Convert Users to synchronize the Linux user and Samba users. In Unix user to covert, select Only linux users or UID ranges:YOUR-USER (e.g., nmaximo7).
Under For newly created users, set the password to:, select Use this pasword, type in your Unix password, click on Convert Users. This Linux user is now a Samba user (Convert Users syncs the UNIX user into the Samba user database), too. Selecting Samba Users you should see these new linux users as Samba users, too.
Still under Servers, Samba Windows File Sharing, let’s create a new share by clicking on Create a new file share: Share name (e.g., homedata, the name that it appears to the end-user for the share seen by Windows clients), Directory to share (the resource’s path that you want to share, e.g., /mnt/mydata), Create with owner (e.g., nmaximo7) and permission (755, owner rwx, group r-x, others r-x).
Save: Create, then select the new share and click Security and Access Control. and make sure that Writable is enable (yes), Valid Users: nmaximo7, Valid Groups: family (we want to be able to read and write in the Share), then Save, Return to share list, and finally Restart Samba Server to force the current configuration to be applied.