network share

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 this

network share

Postby donstoney on Fri May 18, 2012 7:21 pm

Hi guys

Sorry if this has come up before i did do a search for it already but to no avail.
I'm trying to do a simple network share on mint12 lxde, i have installed samba gigolo and smb4k.
i have the server and workgroup added, i can see everything listed in the workgroup including the external drive (which i want to share out)
but i keep getting this everytime i try to view it.

mount.cifs: permission denied: no match for /media/My Passport/LINUXMINT/My Passport found in /etc/fstab

I'm sure its an easy fix but for the life of me google hasnt helped at all :)

I'd appreciate any and all advice that can be given

Cheers guys
Stoney
donstoney
Level 1
Level 1
 
Posts: 5
Joined: Fri May 18, 2012 7:14 pm

Linux Mint is funded by ads and donations.
 

Re: network share

Postby altair4 on Sat May 19, 2012 7:24 am

I'm not sure from your description who's doing what to whom. Samba is a server package and gigolo and smb4k are samba client packages.

Please post the output of the following commands so we can get a better idea of what we're working with:
Code: Select all
testparm -s

Code: Select all
smbtree

mount.cifs: permission denied: no match for /media/My Passport/LINUXMINT/My Passport found in /etc/fstab

You did not mention what you were doing when you got that error message but my guess is that you tried to mount a remote samba share manually in the terminal but forgot to precede the command with sudo. When a non root user tries to mount anything the system always checks to see if anything in fstab allows a non-root user to mount. In this case the answer was no.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 13
Level 13
 
Posts: 4662
Joined: Tue Feb 03, 2009 10:27 am

Re: network share

Postby donstoney on Sat May 19, 2012 1:33 pm

thans very much for the reply

testparm -s
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[print$]"
Processing section "[printers]"
Processing section "[My Passport]"
Loaded services file OK.
Server role: ROLE_STANDALONE
[global]
netbios name = LINUXMINT
server string =
security = SHARE
null passwords = Yes
syslog only = Yes
announce version = 5.0
name resolve order = hosts wins bcast
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = CUPS
wins support = Yes

[print$]
path = /var/lib/samba/printers
write list = root
create mask = 0664
directory mask = 0775
guest ok = Yes

[printers]
path = /tmp
guest ok = Yes
printable = Yes
browseable = No

[My Passport]
path = /media/My Passport
read only = No
guest ok = Yes

smbtree didnt yield any results after password was inputted it just went back to the prompt i'm afraid
findsmb only gave this
*=DMB
+=LMB
IP ADDR NETBIOS NAME WORKGROUP/OS/VERSION
---------------------------------------------------------------------

if thats any help

Thanks again for everything so far
Cheers
donstoney
Level 1
Level 1
 
Posts: 5
Joined: Fri May 18, 2012 7:14 pm

Re: network share

Postby donstoney on Sat May 19, 2012 1:38 pm

oh, and i was using smb4k to try and mount the drive rather than the terminal, coz honestly i dont know the cmd to do it yet :).
most of the cmds i do in terminal i do under su anyways to avoid that kinda stuff, would that be the wrong thing to do actually???
sorry again if this is annoying in any way :)

cheers
donstoney
Level 1
Level 1
 
Posts: 5
Joined: Fri May 18, 2012 7:14 pm

Re: network share

Postby altair4 on Sat May 19, 2012 1:59 pm

You've deviated quite a bit from the default smb.conf. Also, no one still living remembers how share level security works so I'm going to make believe it has the modern equivalent and start from there.

*** You have a couple of entries that require a question:
wins support = Yes
name resolve order = hosts wins bcast

The first one has turned your machine into a WINS server. And the name resolve order reinforces that. Was this your intent.

If not I would redo the name resolve order to this:
Code: Select all
name resolve order = bcast host lmhosts wins

Then restart samba:
Code: Select all
sudo service nmbd restart
sudo service smbd restart

*** The fact that you have no output from smbtree implies a firewall is in the way do I would disable it and try smbtree again.

*** One more question. The smb4k or whatever you are using to access this server is running what OS? Is is another Mint machine or is it something else.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 13
Level 13
 
Posts: 4662
Joined: Tue Feb 03, 2009 10:27 am

Re: network share

Postby donstoney on Sun May 20, 2012 12:16 pm

honestly i was just mucking around with the wins support,
when i changed it to yes i was finally able to view any network shares as they weren't coming up before, but i've changed it to "no" now and added your name resolve order.
I never thought of the firewall coz i already had it disabled but i added some exceptions there just to be sure and findsmb reveals this

*=DMB
+=LMB
IP ADDR NETBIOS NAME WORKGROUP/OS/VERSION
---------------------------------------------------------------------
192.168.1.11 LINUXMINT +[WORKGROUP] [Unix] [Samba 3.5.11]

so happy days, thanks very much for that.

I'm using this mint machine to run the server, so that two other windows units can access the external hdd
i'm still getting the mount.cifs: permission denied: no match for /media/My Passport/LINUXMINT/My Passport found in /etc/fstab error.
also the file explorer gives these errors when i go to network drives and try to access the external hdd
Failed to mount Windows share
The specified location is not mounted

thanks again for everything so far man i appreciate it a whole bunch :D
donstoney
Level 1
Level 1
 
Posts: 5
Joined: Fri May 18, 2012 7:14 pm

Re: network share

Postby altair4 on Sun May 20, 2012 12:34 pm

i'm still getting the mount.cifs: permission denied: no match for /media/My Passport/LINUXMINT/My Passport found in /etc/fstab error.

And I still don't know what application or command you are running that's giving you that error and on what system.
also the file explorer gives these errors when i go to network drives and try to access the external hdd
Failed to mount Windows share

If you are getting that error from a samba client when accessing this share:
[My Passport]
path = /media/My Passport
read only = No
guest ok = Yes

It's because the remote samba client is not you. If "My Passport" is an external USB drive then when inserted or turned on it will mount to your user name and with permissions of 700 - only you can access it regardless of how you set up your share ( guest of = yes ). So go into smb.conf and add a line to the share:
[My Passport]
path = /media/My Passport
read only = No
force user = altair
guest ok = Yes

Change altiar to you own login user name
Then restart samba:
Code: Select all
sudo service smbd restart


The remote guest user will be converted to you and will then have access to the target of the share.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 13
Level 13
 
Posts: 4662
Joined: Tue Feb 03, 2009 10:27 am

Re: network share SOLVED

Postby donstoney on Sun May 20, 2012 3:12 pm

you my friend are an absolute genius, i really cant thank you enough for helping me out, i'd buy you a case of beer if i could.
The word legend comes to mind :-D
The force username sorted it out for me, it was smb4k on this mint machine that was giving me the mount.cifs error, but i uninstalled it coz evidently it was just causing irrevelant problems.

Once again, thank you very much, if i can repay you in any way, i will.

Cheers
donstoney
Level 1
Level 1
 
Posts: 5
Joined: Fri May 18, 2012 7:14 pm

Linux Mint is funded by ads and donations.
 

Return to Newbie Questions

Who is online

Users browsing this forum: Adelante, Google [Bot], High Value Warrior and 20 guests