You are not logged in.

#1 2012-08-14 21:29:21

BlindGeek
Member
From: Burien, WA
Registered: 2012-08-13
Posts: 4

Samba on Arch 64: Windows system can't see shares

Hello,

So I've dug around the web, looking for an answer to this question, starting from the Arch wiki and ending after a few days of search queries at the official Samba home page... Sadly, still no joy. In a nutshell, I'm trying to configure a file and print server (and still need to configure CUPS correctly) for my home network. I use Arch 64, fully up to date, and even after trying various versions of the /etc/smb.conf file, my Windows 7-based netbook still doesn't see the shares even from the default config file (after the adjustment for workgroup name) has been restored.

I'm not sure if it's my router, Arch, Windows or a config file that's tossed the monkey wrench into the works, but at this point it's a showstopper. Could someone kindly point me in the right direction? If need be,  I can provide additional info on request.

Thanks in advance...

~Greg aka BlindGeek

Offline

#2 2012-08-14 21:44:18

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,542

Re: Samba on Arch 64: Windows system can't see shares

It doesn't matter the architecture of the machine running samba, it is a network service.
Try running smbclient locally on the Arch machine to see what response you are getting.  This is a good place to start.
smbclient -L localhost should give a possible indication of what's wrong.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#3 2012-08-14 22:39:44

BlindGeek
Member
From: Burien, WA
Registered: 2012-08-13
Posts: 4

Re: Samba on Arch 64: Windows system can't see shares

Ok here's what happened... I first had to do the following command:

smbpasswd -L -a -e greg

It asks me for a password, which  I used the same one as I use for my Arch account, then I did the following:

[greg@hq ~]$ smbclient -L localhost                                             

Then it asked me for a password, so I typed that in...

Enter greg's password:                                                         

And here's what it gave me...

Domain=[GREGSPLACE] OS=[Unix] Server=[Samba 3.6.7]                             
                                                                               
        Sharename       Type      Comment                                       
        ---------       ----      -------                                       
        IPC$            IPC       IPC Service (Samba Server)                   
        greg            Disk      Home Directories                             
Domain=[GREGSPLACE] OS=[Unix] Server=[Samba 3.6.7]                             
                                                                               
        Server               Comment                                           
        ---------            -------                                           
        HQ                   Samba Server                                       
                                                                               
        Workgroup            Master                                             
        ---------            -------                                           
        GREGSPLACE           HQ                                                 
[greg@hq ~]$

So, it worked, it seems locally... now, what about on the Windows side? One step down, unknown amount to go...

Thanks in advance...

~Greg aka BlindGeek

Offline

#4 2012-08-15 01:24:05

arcane42
Member
Registered: 2012-08-14
Posts: 5

Re: Samba on Arch 64: Windows system can't see shares

The Workgroup should not be GREGSPLACE, instead it should be WORKGROUP. That alone can cause problems on Windows. It can be done that way but it will give a headache. Other things to keep in mind: make sure samba is running and added in  the modules in /etc/rc.conf. Make sure the permissions are set correctly (I cheated did this: chmod -R 777 /home). After each thing you try you need to restart the service or in case of Windows restart it. If you are despite you can webmin to set it up for you.

Offline

#5 2012-08-15 01:34:28

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,542

Re: Samba on Arch 64: Windows system can't see shares

arcane42 wrote:

The Workgroup should not be GREGSPLACE, instead it should be WORKGROUP. That alone can cause problems on Windows. It can be done that way but it will give a headache. Other things to keep in mind: make sure samba is running and added in  the modules in /etc/rc.conf. Make sure the permissions are set correctly (I cheated did this: chmod -R 777 /home). After each thing you try you need to restart the service or in case of Windows restart it. If you are despite you can webmin to set it up for you.

chmod 0777 on /home, I wouldn't do that if I were you...
When you connect to the homes share, it allows access to the proper home directory specified by user.

Have you done net view \\workgroup on windows?
Since the election browser in my opinion is crap I usually call it by, net view \\<ip addr>.
You probably need to specify the user.
Try mapping a drive by net use x: \\<ip addr>\homes /User:<user>, then enter and then enter the password.
LANMAN wasn't the pick of choice between it and Novell NetWare, which NetWare was way better implementation.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#6 2012-08-15 02:07:10

BlindGeek
Member
From: Burien, WA
Registered: 2012-08-13
Posts: 4

Re: Samba on Arch 64: Windows system can't see shares

Success, for the most part...

1. Windows has it's workgroup set to match Samba's, so that's not an issue.

2. Changing the username my Windows account uses to match my Arch account also helped... No more asking for username and password.

3. I enabled the WINS server functionality in Samba, plus reconfigured my router to tell other systems on my home network what the WINS server address is. Crude resolving of hostnames, yes... but it works.

4. As a side note I got CUPS and HPLIP (drivers for HP printers, as I have a Deskjet D1455) working, and printing from both systems (and even my iPhone, which was a shocker) and recognized by Samba.

Those are the successes... now the issue is still getting this cranky copy of Windoze (yes, I did that intentionally) to actually show the Arch system within the Network Neighborhood window. Hey... I won some battles tonight, but not the war as of yet.

Thanks in advance...

~Greg aka BlindGeek

Offline

#7 2012-08-15 02:22:21

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,542

Re: Samba on Arch 64: Windows system can't see shares

Waiting for it to show up in Network Neighborhood?
This is the slowness of the election browser.
You may just have to wait. 
Later versions of Windows just almost required it to be added to Network Neighborhood for it to show up.
So much for the Domain model.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#8 2012-08-15 05:13:59

arcane42
Member
Registered: 2012-08-14
Posts: 5

Re: Samba on Arch 64: Windows system can't see shares

You can have the system logs help you. In Windows look through event viewer. On linux server you edit /etc/smb.conf and increase the log level (the higher the number the more detailed information you will get). log level = 3 should be high enough. After that you look at /var/log/everything.log to see what is going on.

Offline

Board footer

Powered by FluxBB