You are not logged in.
Pages: 1
Hi! I have installed Samba y my laptop. The main application is for share files between Linux and my Window$ VM. For my VM I use KVM. I share two directorys: User Home and /run/media/user. The second I know, if not exist some usb disk, pendrive or something the filesystem does not exis, but ir share when I mount a device.
In VM the home share works fine. The usb share have worked fine, because I found other issue I do not know when no works any more.
The first issue is the usb is not accesible by Windows.
The second Issue that I have in Samba is Thunar can not show the file that samba shared. When I surf the NETWORK --> Browse Network I can see my laptop thre times:
xpsl421x
XPSL421X (File Sharing)
XPSL421X (Fie Sharing)
At the first I can navigate Windows Network.
When I try to open the first (xpsl421x):
The error is:
Failed to open "xpsl421x".
Connection refused by server.When I try to open the other (XPSL421X (File Sharing))
I can see the share resources:
Home and usb
When I try to access the error messages is:
Failed to open "usb".
Failed to mount Windows share: No such file or directory.I have installed gvfs, gvfs-smb...
That is my /etc/samba/smb.conf
#======================= Global Settings =====================================
[global]
workgroup = MORSASHOUSE
server string = Samba Server - Dell XPS L421X
printcap name = /etc/printcap
load printers = yes
log file = /var/log/samba/%m.log
max log size = 500
security = share
username map = /etc/samba/smbusers
interfaces = lo virbr0 wlp2s0 enp1s0:
netbios name = xpsl421x
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
cups options = raw
#============================ Share Definitions ==============================
[homes]
comment = Home Directories
browseable = yes
writable = yes
[usb]
comment = Discos y Pendrives montados
path = /run/media/elrengo/
; valid users = elrengo
read only = no
guest ok = yes
guest only = yes
browseable = yes
public = yes
writable = yes
printable = no
; create mask = 0765
create mask = 0777
directory mask = 0777Thanks in advance!
Last edited by elrengo (2014-12-31 12:46:57)
Offline
You should consider posting in Other Languages: it is very difficult to understand what your issue is.
In order to debug, just try mounting one of the shares from the command line, that is, without Thunar, so you get a more meaningful error message.
Moving to NC...
Offline
Yesterday I was doing troubleshooting. I think Samba has no issues. When I try to connect with Windows or other Linux Client (smbclient) no issues is detect. I have trouble with usb mount that I shared, but I thinks that is a permission issues. The Samba navigation with Thunar or Caja (Nautilus for MATE) is not working but when use the path to connect //smb:user@share I do not have issues. I continue with troubleshooting.
Thanks!
Last edited by elrengo (2014-12-22 14:06:30)
Offline
I continue with some issue with USB Share in Samba, but I think that is a issue with mounting usb hd / stick etc.
I change the security from share to user. After that I can see and navigate the the USB with Samba. And add some tunning I found in Internet.
The issue that is persistent is execute some files.
My original smb.conf
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
#
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command "testparm"
# to check that you have not made any basic syntactic errors.
#
#======================= Global Settings =====================================
[global]
workgroup = MORSASHOUSE
server string = Samba Server - Dell XPS L421X
load printers = yes
log file = /var/log/samba/%m.log
max log size = 500
security = shared
username map = /etc/samba/smbusers
netbios name = xpsl421x
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
cups options = raw
#============================ Share Definitions ==============================
[homes]
comment = Home Directories
browseable = yes
writable = yes
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
# Set public = yes to allow user 'guest account' to print
guest ok = no
writable = no
printable = yes
[usb]
comment = Discos y Pendrives montados
path = /run/media/elrengo/
; valid users = elrengo
read only = no
guest ok = yes
; guest only = yes
browseable = yes
public = yes
writable = yes
printable = no
; create mask = 0765
create mask = 0777
directory mask = 0777New smb.conf
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
#
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command "testparm"
# to check that you have not made any basic syntactic errors.
#
#======================= Global Settings =====================================
[global]
workgroup = MORSASHOUSE
server string = Samba Server - Dell XPS L421X
printcap name = /etc/printcap
load printers = yes
log file = /var/log/samba/%m.log
max log size = 500
security = user
username map = /etc/samba/smbusers
interfaces = lo virbr0 wlp2s0 enp1s0:
dns proxy = no
netbios name = xpsl421x
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
write cache size = 131072
getwd cache = yes
min receivefile size = 16384
max xmit = 65536
cups options = raw
#============================ Share Definitions ==============================
[homes]
comment = Home Directories
browseable = yes
writable = yes
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
# Set public = yes to allow user 'guest account' to print
guest ok = no
writable = no
printable = yes
[usb]
comment = Discos y Pendrives montados
path = /run/media/elrengo/
; valid users = elrengo
read only = no
guest ok = yes
; guest only = yes
browseable = yes
public = yes
writable = yes
printable = no
; create mask = 0765
create mask = 0777
directory mask = 0777Offline
Pages: 1