renito73 Михаил
2013-Jul-12 02:47 UTC
[Samba] Unable to connect to Samba server, but it shows on the network
Hello friends I am trying to setup Samba on my Fedora 19 installation, but it does not work... although "smbclient -L myserver" shows my shares, I can't access any of them from other computers and even from the same server, it returns an error that could not connect to to the server... My very simple configuration is this (my computer has fixed IP) [global] ??????? workgroup = MYGROUPNAME ??????? server string = Samba Server Version %v ??????? # log files split per-machine:????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ??????? log file = /var/log/samba/log.%m ??????? # maximum size of 50KB per log file, then rotate:?????????????????????????????????????????????????????????????????????????????????????????????????????????????? ??????? max log size = 50 ??????? security = user ??????? passdb backend = tdbsam ??????? load printers = yes ??????? cups options = raw [tmp] comment = temporal files path = /tmp public = yes writable = yes printable = no [mp3] comment = my data files path = /mydatafiles public = yes writable = no printable = no I start the service by running # smbd -D # nmbd -D then the logs show: log.nmbd: ------------- [2013/07/11 21:11:47,? 0] ../source3/nmbd/nmbd.c:883(main) ? nmbd version 4.0.7 started. ? Copyright Andrew Tridgell and the Samba Team 1992-2012 [2013/07/11 21:12:20,? 0] ../source3/nmbd/nmbd_become_lmb.c:397(become_local_master_stage2) ? ***** ? Samba name server MYSERVER is now a local master browser for workgroup MYGROUPNAME on subnet 192.168.1.20 ? ***** log.smbd: -------------[2013/07/11 21:11:45,? 0] ../source3/smbd/server.c:1200(main) ? smbd version 4.0.7 started. ? Copyright Andrew Tridgell and the Samba Team 1992-2012 When I try: # smbclient -L myserver (the name of my computer) Anonymous login successful Domain=[MYGROUPNAME] OS=[Unix] Server=[Samba 4.0.7] ??????? Sharename?????? Type????? Comment ??????? ---------?????? ----????? ------- ??????? tmp???????????? Disk????? temporal files ??????? mp3???????????? Disk????? mp3 music ??????? IPC$??????????? IPC?????? IPC Service (Samba Server Version 4.0.7) Anonymous login successful Domain=[SORCERY] OS=[Unix] Server=[Samba 4.0.7] ??????? Server?????????????? Comment ??????? ---------??????????? ------- ??????? MYSERVER ??????? Samba Server Version 4.0.7 ??????? Workgroup??????????? Master ??????? ---------??????????? ------- ??????? MYGROUPNAME ???????????? MYSERVER From windows computers, it shows on the network, from Linux (dolphin browser) it does not show but calling 'smbclient -L myserver' it shows the shared directories... how can I allow other computers to connect? and how can I allow my local computer see its own shares? Thanks for your help
Dale Schroeder
2013-Jul-12 21:38 UTC
[Samba] Unable to connect to Samba server, but it shows on the network
Being Fedora, 1st check selinux configuration: https://wiki.samba.org/index.php/Samba_Troubleshooting Dale On 07/11/2013 9:47 PM, renito73 ?????? wrote:> Hello friends > > I am trying to setup Samba on my Fedora 19 installation, but it does not work... although "smbclient -L myserver" shows my shares, I can't access any of them from other computers and even from the same server, it returns an error that could not connect to to the server... > > My very simple configuration is this (my computer has fixed IP) > > [global] > workgroup = MYGROUPNAME > server string = Samba Server Version %v > > # log files split per-machine: > log file = /var/log/samba/log.%m > # maximum size of 50KB per log file, then rotate: > max log size = 50 > > security = user > passdb backend = tdbsam > > load printers = yes > cups options = raw > > [tmp] > comment = temporal files > path = /tmp > public = yes > writable = yes > printable = no > > [mp3] > comment = my data files > path = /mydatafiles > public = yes > writable = no > printable = no > > > I start the service by running > > # smbd -D > # nmbd -D > > then the logs show: > > log.nmbd: > ------------- > [2013/07/11 21:11:47, 0] ../source3/nmbd/nmbd.c:883(main) > nmbd version 4.0.7 started. > Copyright Andrew Tridgell and the Samba Team 1992-2012 > [2013/07/11 21:12:20, 0] ../source3/nmbd/nmbd_become_lmb.c:397(become_local_master_stage2) > ***** > Samba name server MYSERVER is now a local master browser for workgroup MYGROUPNAME on subnet 192.168.1.20 > ***** > > log.smbd: > -------------[2013/07/11 21:11:45, 0] ../source3/smbd/server.c:1200(main) > smbd version 4.0.7 started. > Copyright Andrew Tridgell and the Samba Team 1992-2012 > > When I try: > > # smbclient -L myserver (the name of my computer) > > Anonymous login successful > Domain=[MYGROUPNAME] OS=[Unix] Server=[Samba 4.0.7] > > Sharename Type Comment > --------- ---- ------- > tmp Disk temporal files > mp3 Disk mp3 music > IPC$ IPC IPC Service (Samba Server Version 4.0.7) > Anonymous login successful > Domain=[SORCERY] OS=[Unix] Server=[Samba 4.0.7] > > Server Comment > --------- ------- > MYSERVER Samba Server Version 4.0.7 > > Workgroup Master > --------- ------- > MYGROUPNAME MYSERVER > > > From windows computers, it shows on the network, from Linux (dolphin browser) it does not show but calling 'smbclient -L myserver' it shows the shared directories... how can I allow other computers to connect? and how can I allow my local computer see its own shares? > > Thanks for your help > >