How To File Sharing Linux Mint 17 (SOLVED)

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
theprodejeff
Level 1
Level 1
Posts: 16
Joined: Sat Nov 26, 2011 11:30 am

How To File Sharing Linux Mint 17 (SOLVED)

Post by theprodejeff »

Hello fellow Mint users,

I really love linux but there are times that I want to switch back to windows because I getting sick and tired of trying a whole day and getting no results.

Why can´t Linux Mint create a simple file sharing that works out of the box!

Is there someone here on this forum who can help me achieve this, I just want to share my public folder on the network. I tried the whole day and so far I have no result what so ever!

With kind regards Jeff Bootsma
Last edited by theprodejeff on Fri Aug 29, 2014 6:59 pm, edited 1 time in total.

raptir
Level 2
Level 2
Posts: 95
Joined: Mon Aug 25, 2014 2:35 pm

Re: How To File Sharing Linux Mint 17

Post by raptir »

Well, what have you tried and what is not working? You should be able to right-click on the folder and click Sharing Options to get the folder shared.

theprodejeff
Level 1
Level 1
Posts: 16
Joined: Sat Nov 26, 2011 11:30 am

Re: How To File Sharing Linux Mint 17

Post by theprodejeff »

I tried that without any luck, watched video´s on YouTube followed there instruction and no luck. Right now I´m exporting all my files to a external HDD and I´m gone reinstall linux mint again. I really love this OS and try again but I just don´t understand why it doesn´t work out of the box.

raptir
Level 2
Level 2
Posts: 95
Joined: Mon Aug 25, 2014 2:35 pm

Re: How To File Sharing Linux Mint 17

Post by raptir »

You really need to provide more details for anyone to be able to help you. After you set up the share, what happens? Are you able to see the share on your other computers and just not access it, or are you unable to see it at all? What OS are you using on the other computers?

theprodejeff
Level 1
Level 1
Posts: 16
Joined: Sat Nov 26, 2011 11:30 am

Re: How To File Sharing Linux Mint 17

Post by theprodejeff »

No, nothing happens. The network doesn´t show up. I will try to put as much info I can find. Hopefully someone can help me, thanks in advanced.

When I type testparm -s in the terminal this is the result:

Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[Public]"
Loaded services file OK.
Server role: ROLE_STANDALONE
[global]
workgroup = THEPRODEJEFF
server string = The Prodejeff Sharing
name resolve order = bcast, host
idmap config * : backend = tdb

[Public]
comment = The Prodejeff File Sharing
path = /home/jeff/Public
valid users = jeff
read only = No
guest ok = Yes

User avatar
EmpireITtech
Level 4
Level 4
Posts: 409
Joined: Fri Oct 12, 2012 8:45 am

Re: How To File Sharing Linux Mint 17

Post by EmpireITtech »

  • First off - who are you trying to share your docs with? As in, is this for yourself so you can move them between your PC's or for other people on your network?
    Second - are the other PC's on your network Linux or Windows?
Yes, sometimes Linux causes you to have to fiddle with things to get them right. But that's also gives you your freedom to do whatever you like with your OS :mrgreen:
Linux: Mint 19 Tara Cinnamon 64-Bit

Box 1: Intel Core 2 Quad | 8gb RAM | 500gb WD 7200rpm | nVidia Geforce GTS250
Box 2: Intel Core i3-3240 | 4gb RAM | 1tb WD 7200rpm | AMD/ATI Radeon HD 4550

Pants: 32x30

theprodejeff
Level 1
Level 1
Posts: 16
Joined: Sat Nov 26, 2011 11:30 am

Re: How To File Sharing Linux Mint 17

Post by theprodejeff »

You´re right, what I want to do is share between my laptop and desktop. My desktop has windows 8.1 on a SSD and Linux Mint 17 on a HDD and my laptop has linux mint 17 on the HDD. For some odd reasons I can´t get it to work but in the previous version of ubuntu and linux mint I always succeeded, never failed. But today it´s a series of failures. Gives me as much tips as possible, I really can it right now.

User avatar
EmpireITtech
Level 4
Level 4
Posts: 409
Joined: Fri Oct 12, 2012 8:45 am

Re: How To File Sharing Linux Mint 17

Post by EmpireITtech »

How much data are we talking about here?
Might I suggest using Dropbox since it seamlessly works between Windows and Linux...that's what I do since I have a home Windows PC, Linux desktop, Linux laptop, and a work Windows PC lol :lol:
Linux: Mint 19 Tara Cinnamon 64-Bit

Box 1: Intel Core 2 Quad | 8gb RAM | 500gb WD 7200rpm | nVidia Geforce GTS250
Box 2: Intel Core i3-3240 | 4gb RAM | 1tb WD 7200rpm | AMD/ATI Radeon HD 4550

Pants: 32x30

altair4
Level 19
Level 19
Posts: 9892
Joined: Tue Feb 03, 2009 10:27 am

Re: How To File Sharing Linux Mint 17

Post by altair4 »

Did you make a backup copy of your original smb.conf?

You have removed far too much and need to restore the default.

Also, Mint17 what? Cinnamon, MATE, XFCE ... ?
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

theprodejeff
Level 1
Level 1
Posts: 16
Joined: Sat Nov 26, 2011 11:30 am

Re: How To File Sharing Linux Mint 17

Post by theprodejeff »

I know I kind of screwed up the config and I first backup my original smbconifg but lost during a reckless deleting rampage. I use Cinnamon x64 Linux Mint 17, I share big files between the two systems.

theprodejeff
Level 1
Level 1
Posts: 16
Joined: Sat Nov 26, 2011 11:30 am

Re: How To File Sharing Linux Mint 17

Post by theprodejeff »

This is my smb.conf:

[global]
server string = The Prodejeff Sharing
workgroup = THEPRODEJEFF
netbios name = jeff-Lenovo-Z710
security = user
encrypt passwords = yes
guest account = nobody
name resolve order = bcast host
include = /etc/samba/smbshared.conf

This is my smbshared.conf:

[Public]
comment = The Prodejeff File Sharing
path = /home/jeff/Public
browsable = yes
guest ok = no
read only = yes
available = yes
public = yes
writable = yes
valid users = jeff


This is my smbusers:

jeff = "jeff"

altair4
Level 19
Level 19
Posts: 9892
Joined: Tue Feb 03, 2009 10:27 am

Re: How To File Sharing Linux Mint 17

Post by altair4 »

Run these commands in sequence please:

Code: Select all

sudo mv /etc/samba/smb.conf /etc/samba/smb.conf.bak

Code: Select all

sudo cp -a /usr/share/samba/smb.conf /etc/samba
Then issue this command to reset yourself:

Code: Select all

sudo service smbd restart
Now go to this checklist to make sure your Mint machine is set up properly: http://forums.linuxmint.com/viewtopic.p ... 46&start=0

If everything is in order and you still have issues post the output of the following commands:

Code: Select all

testparm -s

Code: Select all

net usershare info --long
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

theprodejeff
Level 1
Level 1
Posts: 16
Joined: Sat Nov 26, 2011 11:30 am

Re: How To File Sharing Linux Mint 17

Post by theprodejeff »

Thank you for your tips and instructions, I followed your instructioins and it did not work. I tried to acces my public folder by using my desktop but it does not work. My deskop ask for a password. I can use some more tips. I´m really greatful for your help and tips. In the previous installations of ubuntu and linux mint I had no problem with setting up a sharing.


testparm -s
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE
[global]
server string = %h server (Samba, Ubuntu)
server role = standalone server
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
idmap config * : backend = tdb

[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
print ok = Yes
browseable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/printers

altair4
Level 19
Level 19
Posts: 9892
Joined: Tue Feb 03, 2009 10:27 am

Re: How To File Sharing Linux Mint 17

Post by altair4 »

You have nothing shared yet.

Did the output of this command produce nothing:

Code: Select all

net usershare info --long
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

theprodejeff
Level 1
Level 1
Posts: 16
Joined: Sat Nov 26, 2011 11:30 am

Re: How To File Sharing Linux Mint 17

Post by theprodejeff »

This is the info when I type net usershare info --long:

net usershare info --long
[Public]
path=/home/jeff/Public
comment=
usershare_acl=Everyone:F,
guest_ok=n

altair4
Level 19
Level 19
Posts: 9892
Joined: Tue Feb 03, 2009 10:27 am

Re: How To File Sharing Linux Mint 17

Post by altair4 »

As long as you haven't encrypted your home directory you will need to add a user and then add him to the samba password database.

For a test you can use the user jeff if that is your login user name:

Code: Select all

sudo smbpasswd -a jeff
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

theprodejeff
Level 1
Level 1
Posts: 16
Joined: Sat Nov 26, 2011 11:30 am

Re: How To File Sharing Linux Mint 17

Post by theprodejeff »

I followed your instructions, this is gone be a dumb question but I used the same password as my system login. This is the result:

sudo smbpasswd -a jeff
[sudo] password for jeff:
New SMB password:
Retype new SMB password:

altair4
Level 19
Level 19
Posts: 9892
Joined: Tue Feb 03, 2009 10:27 am

Re: How To File Sharing Linux Mint 17

Post by altair4 »

That's fine. Now access yourself - use the samba client on your Mint machine to access the samba server on your Mint machine:

In a terminal:

Code: Select all

nemo smb://hostname.local/public
Change "hostname" to your hostname on the mint machine.

Or by ip address of the Mint machine, for example:

Code: Select all

nemo smb://192.168.0.100/public
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

theprodejeff
Level 1
Level 1
Posts: 16
Joined: Sat Nov 26, 2011 11:30 am

Re: How To File Sharing Linux Mint 17

Post by theprodejeff »

I know this is a dumb question but I forgot how to acces my own hostname, how to I retrieve my hostname?

altair4
Level 19
Level 19
Posts: 9892
Joined: Tue Feb 03, 2009 10:27 am

Re: How To File Sharing Linux Mint 17

Post by altair4 »

believe it or not open a terminal and type:

Code: Select all

hostname
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

Post Reply

Return to “Newbie Questions”