Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED] SAMBA problems with Windows

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
banderas20
Posts: 111
Joined: 2016-11-10 15:30

[SOLVED] SAMBA problems with Windows

#1 Post by banderas20 »

Hello guys,

I have just installed SAMBA in a Debian box. The only thing I have done has been edit /etc/samba/smb.conf and changed the workgroup so that it matched witch my Windows box.

Then I restarted the smbd service and tried to browse "Other locations" with the gnome File Explorer. It doesn't even show the windows machine.

¿What's wrong?

Thanks!
Last edited by banderas20 on 2018-08-04 10:01, edited 1 time in total.

arzgi
Posts: 1193
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 31 times

Re: SAMBA problems with Windows

#2 Post by arzgi »

banderas20 wrote:Hello guys,

I have just installed SAMBA in a Debian box. The only thing I have done has been edit /etc/samba/smb.conf and changed the workgroup so that it matched witch my Windows box.

Then I restarted the smbd service and tried to browse "Other locations" with the gnome File Explorer. It doesn't even show the windows machine.

¿What's wrong?

Thanks!
I've never needed samba, lost my nerves to win95, formatted disk, and installed linux, and never looked back :D

But anyways, Debian Wiki is worth searching, and there is this:
https://wiki.debian.org/SambaServerSimple

User avatar
4D696B65
Site admin
Site admin
Posts: 2696
Joined: 2009-06-28 06:09
Been thanked: 86 times

Re: SAMBA problems with Windows

#3 Post by 4D696B65 »

Samba server is not needed to browse windows shares. Your problem is elsewhere.

banderas20
Posts: 111
Joined: 2016-11-10 15:30

Re: SAMBA problems with Windows

#4 Post by banderas20 »

4D696B65 wrote:Samba server is not needed to browse windows shares. Your problem is elsewhere.
Yesterday I browsed windows shares with SAMBA. Today I tried uninstalling and installing and it doesn't work.

¿Where might the problem be?

Thanks!

User avatar
4D696B65
Site admin
Site admin
Posts: 2696
Joined: 2009-06-28 06:09
Been thanked: 86 times

Re: SAMBA problems with Windows

#5 Post by 4D696B65 »

gnome uses gvfs-backends to browse shares. Is it installed?

banderas20
Posts: 111
Joined: 2016-11-10 15:30

Re: SAMBA problems with Windows

#6 Post by banderas20 »

4D696B65 wrote:gnome uses gvfs-backends to browse shares. Is it installed?
Yesterday I could without that package.... :(

CwF
Global Moderator
Global Moderator
Posts: 2672
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 196 times

Re: SAMBA problems with Windows

#7 Post by CwF »

banderas20 wrote:
4D696B65 wrote:gnome uses gvfs-backends to browse shares. Is it installed?
Yesterday I could without that package.... :(
This got me when I first built up a debian. Thunar worked every so often on whatever default install, that's no samba, no backends. I never did figure that out.

I did settle for gigolo +gvfs-backends +gvfs-fuse. Then when I added that seemingly redundant gigolo step it works every time.

Later on I found gigolo respects entries in /etc/samba/smb.conf without samba installed.

Who knows? It always works now.

banderas20
Posts: 111
Joined: 2016-11-10 15:30

Re: SAMBA problems with Windows

#8 Post by banderas20 »

Hello.

I have been able to do it both ways. In the way Linux -> Windows I tried with smbmount, as several webs explain. However, I don't have that command neither can download it via the repositories.

The I tried with mount -t smbfs, but it didn't recognize the filetype.

If I issued apt-get install smbfs, the result was:

Code: Select all

Reading package lists... Done
Building dependency tree      
Reading state information... Done
Package smbfs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  cifs-utils
I wanted to do it via samba packages, but it gave me no choice. Once I installed cifs-utils, the proper command worked like this:

Code: Select all

mount -t cifs //windows_host/folder /mount/point/ -o username=uname,uid=uname,gid=uname
Thanks for your help! And I hope this solution helps other people with similar issues.

Post Reply