You are not logged in.

#1 2013-01-13 19:01:03

Ztjuh
Member
Registered: 2011-05-30
Posts: 58

[SAMBA] Can't mount windows 7 share.

I can't mount my windows 7 share. It has been setup for guest/everybody.

smbclient //192.168.0.50/E -W WORKGROUP -U guest%

and

smbclient -L ZTJUH-PC -U guest

both work, but,

sudo mount -t cifs -o guest //192.168.0.50/E /mnt/E

doesn't work. After doing a 'ls' the directory is empty. And the mount program didn't give any error..

dmesg | tail:

[205231.026319] CIFS VFS: Error connecting to socket. Aborting operation
[205231.026539] CIFS VFS: cifs_mount failed w/return code = -115
[211014.912411] CIFS VFS: Error connecting to socket. Aborting operation
[211014.912621] CIFS VFS: cifs_mount failed w/return code = -115

I've tried googling on the Error connecting to socket and the -115 code but couldn't find anything related to my issue.

smb.conf:

#======================= Global Settings =====================================
[global]

# workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH
   workgroup = WORKGROUP

# server string is the equivalent of the NT Description field
   server string = Samba Server

# Security mode. Defines in which mode Samba will operate. Possible
# values are share, user, server, domain and ads. Most people will want
# user level security. See the Samba-HOWTO-Collection for details.
   security = share

# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
# following example restricts access to two C class networks and
# the "loopback" interface. For more examples of the syntax see
# the smb.conf man page
   hosts allow = 192.168.0. 127.

# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
   load printers = yes

# this tells Samba to use a separate log file for each machine
# that connects
   log file = /var/log/samba/%m.log

# Put a capping on the size of the log files (in Kb).
   max log size = 50


# Configure Samba to use multiple interfaces
# If you have multiple network interfaces then you must list them
# here. See the man page for details.
;   interfaces = 192.168.12.2/24 192.168.13.2/24
interfaces = lo eth0
bind interfaces only = true


# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups. The default is NO.
   dns proxy = no

#============================ Share Definitions ==============================
[homes]
   comment = Home Directories
   browseable = no
   writable = yes

# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
   comment = All Printers
   path = /var/spool/samba
   browseable = no
# Set public = yes to allow user 'guest account' to print
   guest ok = yes
   writable = no
   printable = yes

Please help! smile

Last edited by Ztjuh (2013-01-13 19:14:03)

Offline

#2 2013-01-13 19:45:49

Ztjuh
Member
Registered: 2011-05-30
Posts: 58

Re: [SAMBA] Can't mount windows 7 share.

I got it to work smile

Offline

#3 2013-01-13 19:52:29

masteryod
Member
Registered: 2010-05-19
Posts: 433

Re: [SAMBA] Can't mount windows 7 share.

Ztjuh wrote:

I got it to work smile

Great but can you explain how did you solved it/what was wrong? In the future someone can have similar issue. Writing that it works without explanation of the solution is futile.

Offline

#4 2013-03-29 01:00:06

Janilson
Member
From: Recife-PE/Brazil
Registered: 2013-03-05
Posts: 55

Re: [SAMBA] Can't mount windows 7 share.

Yes, please tell us how you did it, I have this same problem :S

Offline

Board footer

Powered by FluxBB