Sharing Files on Linux Mint - Use Nemo

zman58
  9 years ago
  6

Using Nemo to share files via SMB, or Windows style fileshares

You can share any user directory you wish by using Nemo, the file browser provided by default in Linux Mint. Start Nemo, the file browser and navigate to a directory somewhere below your home that you want to share. Rt-Click the directory of choice and select Properties. Then take a close look at the "Sharing" tab.

- Select "Share this Folder"
This will let you access the folder from another system as a SMB share. Before you can actually access this you will need a samba password. So create one by going to the command line and typing
$ sudo smbpasswd -a user
...where user is your user name on the Linux system.
...Now you can go to a Windows or OS X, or another Linux machine and access the share on your Linux system. Use the credentials of your Linux username and the smb password you provided when you ran the command above.

Keep in mind that your Linux Mint password and your smb password are independent. They do not need to be the same.

You can always change your samba password on your Linux Mint system by going to the command prompt and simply entering:
$ smbpasswd
..it will prompt you for the old password then prompt you twice for the new password.

Going back to revisit the share Properties; you can select guest access, such that you don't need to have an account to view the share. Anyone can then browser to the SMB share on the Linux box to read files. This presents a very open share.

Revisiting the share Properties yet again, you can also create the share such that you must have an account on the Linux system (and a smb user), but would have read-only access to the share.
$ sudo adduser shareuser
$ sudo smbpasswd -a shareuser
..Now shareuser can access the share you created, BUT will only have read access. Guests with no local smb account entry will not have access at all. This type of share lets you share data with others who have the smb credentials you provide them. You can even create the account such that it has no login permission on the system by using the "--disabled-login" command line option.

I have seen lots of convoluted and confusing ways to accomplish fileshare on Linux. This is by far the most simple that I have discovered.

Comments
Rustyp 9 years ago

Followed the above instructions I can not see the share on any other computer.

Maybe I am looking for the share in the wrong location? Since its not specified I will assume on the other computers I was suppose to click on or refresh "Network" on the other computers.

""Before you can actually access this you will need a samba password. So create one by going to the command line and typing
$ sudo smbpasswd -a user""

So does that mean if you were to share 19 folders you need to create a user password thing for each one?

I have about 40 0ther questions but since this does not work I will not ask.

Thanks for trying.


MagicMint 9 years ago

@gerrit41: If it doesn’t work, it has nothing to do with the bit length of your processor. It’s rather the complexity of SMB that’s responsible for it.


gerrit41 9 years ago

Doesn't work on 32 bit machines.


oldhound 9 years ago

Thanks, I've been looking for something this simple. I'll give it a try.


MagicMint 9 years ago

If only it was alway that simple… The right membership and the guest user could be missing, cf. http://community.linuxmint.com/tutorial/view/1937 ;-)