Page 1 of 1

samba

PostPosted: Oct 7th, '13, 11:02
by ptit-dave29
Hello,
i've got mageia 3 and samba installed. In my network, i've got a ubuntu and a old windows xp.
Windows and ubuntu can see my share folders on mageia.
But I can not see the share folders on the other machines. I can not go out. It does not work. I can not mount them.

Code: Select all
[root@localhost etc]# smbstatus

Samba version 3.6.15
PID     Username      Group         Machine                       
-------------------------------------------------------------------

Service      pid     machine       Connected at
-------------------------------------------------------
IPC$         5574   pcmageia      Mon Oct  7 10:29:01 2013

No locked files


Code: Select all
[root@localhost etc]# smbtree
Enter stephane's password:
WORKGROUP
   \\POSTE3               poste3
   \\PCMAGEIA             localhost
      \\PCMAGEIA\stephane          Home Directories
      \\PCMAGEIA\IPC$              IPC Service (localhost)
      \\PCMAGEIA\Partage           Partage
      \\PCMAGEIA\pdf-gen           PDF Generator (only valid users)
      \\PCMAGEIA\print$   

Code: Select all
[root@localhost etc]# smbtree
Enter stephane's password:
WORKGROUP
   \\STEPHANE             stephane server (Samba, Ubuntu)
   \\POSTE3               poste3
   \\PCMAGEIA             localhost
      \\PCMAGEIA\stephane          Home Directories
      \\PCMAGEIA\IPC$              IPC Service (localhost)
      \\PCMAGEIA\Partage           Partage
      \\PCMAGEIA\pdf-gen           PDF Generator (only valid users)
      \\PCMAGEIA\print$            
[root@localhost etc]#


With network servers :
Cature1.png
Cature1.png (97.1 KiB) Viewed 5018 times

then,
Capture2.png
Capture2.png (66.4 KiB) Viewed 5018 times


Thanks for your help.

Re: samba

PostPosted: Oct 7th, '13, 22:19
by doktor5000
Could be a firewall issue, please have a look at viewtopic.php?f=8&t=4987

Re: samba

PostPosted: Oct 8th, '13, 00:41
by ptit-dave29
Hello and thanks for your reply.
I've done that : urpme shorewall-ipv6
And it's not better. I've got the same messages. I can not open the shared folders of the other machines.
I've disabled firewall, and it's not better too.
Sorry

Re: samba

PostPosted: Oct 8th, '13, 07:32
by jkerr82508
Try entering in the location box of your file manager
Code: Select all
smb://stephane/share

Replace share with the name of a share that you have set up on stephane

(I assume that poste3 can access shares on stephane and vice-versa)

Jim

Re: samba

PostPosted: Oct 8th, '13, 23:32
by ptit-dave29
Hello jkerr82508, and thanks for your reply.
Poste3 is a windows machine and stephane is an ubuntu one. Poste3 can see stephane and vice-versa. And we are able to exchange files between the 2 machines.
The problem is mageia. I can send files from ubuntu or windows in a share folder on mageia but i can not send files from mageia to the share folders of the two others.

You said me :
Try entering in the location box of your file manager

Code: Select all
smb://stephane/share


So i've got that :

Capt3.png
Capt3.png (39.3 KiB) Viewed 4974 times


It's hell...

Re: samba

PostPosted: Oct 9th, '13, 01:32
by jkerr82508
Make sure that you have the samba-client, gvfs and gvfs-smb packages installed in Mageia. I can't think of anything else to try at present.

Jim

Re: samba

PostPosted: Oct 9th, '13, 13:03
by ptit-dave29
Hello Jim,

Yes they are....

I think that the problem is harder. I've read that : https://bugs.mageia.org/show_bug.cgi?id=7017 & https://bugs.mageia.org/show_bug.cgi?id=2806

It seems that there is no solution.

Re: samba

PostPosted: Oct 9th, '13, 14:35
by jkerr82508
I've no recent experience of nautilus. I mainly use Dolphin in KDE and it has no problem displaying samba shares. You may not want to try dolphin, as it would bring a lot of KDE with it. However, I also use pcmanfm (in LXDE) and it does display a samba share, after entering smb://server/share in the location/search box. You may want to try it but I've no idea if it will actually work in Gnome.

Jim

Re: samba

PostPosted: Oct 24th, '13, 16:52
by wintpe
also in mageia, open a terminal and run

smbclient -L \\windowshost\sharename


that bypasses all the gui tools.

it could be your magiea box is not able to map an ipaddress to the windows or ubuntu system correctly to match there shared
netbios name.

if thats the case, try adding an entry to your local hosts file of

192.168.x.x windowshost

or whatever your ipaddress of XP system is.

regards peter

Re: samba

PostPosted: Oct 28th, '13, 13:54
by magfan
In case of newer kernels like in Mageia 3 the security level for cifs mounts has been changed (https://git.kernel.org/cgit/linux/kerne ... 846e3b14ce). So if you try to mount a share on a samba client which assumes that the security level is "sec=ntlmv2" any mounting attempt will fail. In such a case you will have to set the following option explicitly: "sec=ntlm". A valid fstab entry on your Mageia system may look like this:

Code: Select all
//ubuntu/data /mnt/ubuntu/data cifs credentials=/etc/samba/auth.ubuntu,file_mode=0664,nosuid,sec=ntlm,nodev,noexec,dir_mode=0755 0 0