File Sharing in Linux Mint 17.x
Want to share files in Linux Mint? The process is rather simple. If basic sharing is what you’re after in Linux Mint, share your files and setup folders shares in just a couple of minutes.
Create a share folder, for example: “share” under your home directory and assign permissions for others to be able to read or read and write to this new share:
Next, browse to the new created folder, right click on it and select “Sharing Options” from the context menu. Enable the “Share this folder“, “Allow others to create and delete files in this folder” and “Guest access (for people without a user account)” options.
Finally, verify that others have permissions to this share to create and delete files in this folder. To do so, right click the shared folder and select Properties from the context menu. Browse to the the Permissions tab, make sure permissions for Others have been assigned and “Apply Permissions to Enclosed files”.
From another computer, browse to your mint share, enter the username and password of your share (Linux Mint username and password) when prompted to do so to have access to your share.
Note: You may not be prompted for username and password if the user account credentials in the computer you’re connecting from matches the user’s credentials of the samba share in the remote server.
But wait! …this is not what we were expecting! We were planning on sharing files with Guests (people without a user account) and the screenshot above shows such option grayed out??! What’s wrong?
This seems to be a common mis-configuration when sharing files via caja-share (MATE) or nemo-share (Cinnamon) while also configuring additional samba shares in Linux Mint, manually.
The catch; there is a difference between UserShares and ClassicShares:
UserShares (samba shares configuration) are stored under /var/lib/samba/usershares/ in Linux Mint, while ClassicShares are usually kept under /etc/samba/ by default.
Hence, if you want to keep the “Guest access (for people without a user account)” option available for UserShares don’t forget to include “usershare allow guests = yes” in /etc/samba/smb.conf global configuration.
Let’s check our share options after including “usershare allow guests = yes” in /etc/samba/smb.conf:
Great, guest access (for people without a user account) is not longer grayed out! Guests will now be able to access this UserShare without a username and password!