You are not logged in.

#1 2012-03-23 23:09:17

nonah
Member
Registered: 2012-03-18
Posts: 24

[SOLVED] SAMBA stopped working, AGAIN...

So, second time smbclient stopped working (or atleast I can't connect to my windows share)

The first time, I also created a thread about after trying to get it to work for hours without success. Then suddenly it started working, no idea why (and thus I closed the thread). And now it stopped working again, and I can't figure out why, I've spent hours searching and trying different things to get it to work, but noone seems to have the same problem. I just don't understand what's happening, and a little guidance would be amazing...


Things I've tried:

*Reinstalling smbclient. This removed my /etc/samba folder. And IT WONT COME BACK,  soo... dunno what's up with this one..

*To troubleshoot, I did smbclient -L ip-adress... Which told me it couldn't find the conf file. If I testparm this I get: protocol negotiation failed: NT_STATUS_INSUFFICIENT_RESOURCES

* If I try to mount the windows share, I get: failed to retrieve share list from server. Before I tried to fix it (reinstalling, etc.) I got something about permissions. So I guess if I fix one thing I'll get the other.


If I could get some help that would be amazing, right now I'm thinking about a reinstall, since I'm clueless about how to fix this. Problem is, it probably would occurr again after some time.

Thanks in advance hmm

Last edited by nonah (2012-03-24 10:16:17)

Offline

#2 2012-03-23 23:25:28

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,744

Re: [SOLVED] SAMBA stopped working, AGAIN...

From my system:

ewaller@odin:~[1] 1002 %smbclient -L den2
Enter ewaller's password: 
Domain=[DEN2] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

        Sharename       Type      Comment
        ---------       ----      -------
        Documents and Settings Disk      
        Laserjet1020    Printer   HP LaserJet 1020
        IPC$            IPC       Remote IPC
        SharedDocs      Disk      
        print$          Disk      Printer Drivers
        CDrive          Disk      
        Incoming Scans  Disk      DDF shared folder
        ADMIN$          Disk      Remote Admin
        C$              Disk      Default share
Domain=[DEN2] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

        Server               Comment
        ---------            -------

        Workgroup            Master
        ---------            -------
ewaller@odin:~ 1003 %ls /etc/sam*
private  smb.conf  smb.conf~  smb.conf.default
ewaller@odin:~ 1004 %

and...

ewaller@odin:~[1] 1004 %pacman -Qo /etc/samba/smb.conf.default 
/etc/samba/smb.conf.default is owned by samba 3.6.3-4
ewaller@odin:~ 1005 %

I always find that Samba stops working on the second Tuesday of the month wink


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Online

#3 2012-03-23 23:52:00

nonah
Member
Registered: 2012-03-18
Posts: 24

Re: [SOLVED] SAMBA stopped working, AGAIN...

Err, I'm sorry, but how will that help me? sad

Offline

#4 2012-03-24 00:02:17

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,744

Re: [SOLVED] SAMBA stopped working, AGAIN...

Do you have samba 3.6.3-4 installed?  The /etc/samba directory and its contents belong to it.

The second Tuesday of the month was a joke -- that is when Microsoft pushes their updates.  It often breaks the authentication of SMB on my network's Windows box.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Online

#5 2012-03-24 00:10:33

nonah
Member
Registered: 2012-03-18
Posts: 24

Re: [SOLVED] SAMBA stopped working, AGAIN...

Had no idea, made me laugh though, now that I know tongue

I only have smbclient installed, not samba. Is the conf file only for samba? If so, why would smbclient complain?

Offline

#6 2012-03-24 00:27:42

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,744

Re: [SOLVED] SAMBA stopped working, AGAIN...

It would seem that smbclient looks for the file...

ewaller@odin:/etc 1028 %sudo mv samba _samba
Password: 
ewaller@odin:/etc 1029 %smbclient -L den2
params.c:OpenConfFile() - Unable to open configuration file "/etc/samba/smb.conf":
        No such file or directory
smbclient: Can't load /etc/samba/smb.conf - run testparm to debug it
Enter ewaller's password: 
Domain=[DEN2] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

        Sharename       Type      Comment
        ---------       ----      -------
        Documents and Settings Disk      
        Laserjet1020    Printer   HP LaserJet 1020
        IPC$            IPC       Remote IPC
        SharedDocs      Disk      
        print$          Disk      Printer Drivers
        CDrive          Disk      
        Incoming Scans  Disk      DDF shared folder
        ADMIN$          Disk      Remote Admin
        C$              Disk      Default share
Domain=[DEN2] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

        Server               Comment
        ---------            -------

        Workgroup            Master
        ---------            -------
ewaller@odin:/etc 1030 %sudo mv _samba samba
ewaller@odin:/etc 1031 %smbclient -L den2   
Enter ewaller's password: 
Domain=[DEN2] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

        Sharename       Type      Comment
        ---------       ----      -------
        Documents and Settings Disk      
        Laserjet1020    Printer   HP LaserJet 1020
        IPC$            IPC       Remote IPC
        SharedDocs      Disk      
        print$          Disk      Printer Drivers
        CDrive          Disk      
        Incoming Scans  Disk      DDF shared folder
        ADMIN$          Disk      Remote Admin
        C$              Disk      Default share
Domain=[DEN2] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

        Server               Comment
        ---------            -------

        Workgroup            Master
        ---------            -------
ewaller@odin:/etc 1032 %

But, it does go on to work without it.  You might try installing samba to see if it helps.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Online

#7 2012-03-24 00:29:27

nonah
Member
Registered: 2012-03-18
Posts: 24

Re: [SOLVED] SAMBA stopped working, AGAIN...

still get the same error.

Also, I can still access the share with all the other computers

Offline

#8 2012-03-24 00:36:38

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,744

Re: [SOLVED] SAMBA stopped working, AGAIN...

Ah, I bet there is not a /etc/smb.conf yet.  Copy (as root) /etc/samba/smb.conf.default to /etc/samba/smb.conf. 
I did a diff on the files for my system, and I changed /etc/samba/smb.conf so that the workgroup is home.

ewaller@odin:/etc/samba 1034 %diff smb.conf smb.conf.default 
26c26
<    workgroup = home
---
>    workgroup = MYGROUP
ewaller@odin:/etc/samba[1] 1035 %

Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Online

#9 2012-03-24 00:47:45

nonah
Member
Registered: 2012-03-18
Posts: 24

Re: [SOLVED] SAMBA stopped working, AGAIN...

Problem is. I got no /etc/samba/ folder at all: there's nothing to copy

Offline

#10 2012-03-24 01:04:28

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,744

Re: [SOLVED] SAMBA stopped working, AGAIN...

nonah wrote:

Problem is. I got no /etc/samba/ folder at all: there's nothing to copy

Okay, now I am lost.  /etc/samba should have been created when you installed samba


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Online

#11 2012-03-24 01:19:07

nonah
Member
Registered: 2012-03-18
Posts: 24

Re: [SOLVED] SAMBA stopped working, AGAIN...

Allright, managed to find a backup of my /etc/samba folder.

Anyway, when running: smbclient -L ip-adress-of-the-server I get this:

[nonah@ND ~]$ smbclient -L 192.168.1.86
Enter nonah's password: 
Failed to load upcase.dat, will use lame ASCII-only case sensitivity rules
Failed to load lowcase.dat, will use lame ASCII-only case sensitivity rules
protocol negotiation failed: NT_STATUS_INSUFFICIENT_RESOURCES
[nonah@ND ~]$ 

I also get a: failed to retrieve share list. trying to mount the server with pcmanfm.

Any ideas hmm

Offline

#12 2012-03-24 10:16:00

nonah
Member
Registered: 2012-03-18
Posts: 24

Re: [SOLVED] SAMBA stopped working, AGAIN...

Eh, now I feel stupid. Only had to restart the server.

Problem is, it seems I have to do this every time I upload a file to the server, oh well.

Thanks for your help though, much appreciated smile

Offline

#13 2012-03-24 13:07:15

ninjaprawn
Member
From: Manchester, UK
Registered: 2008-01-26
Posts: 485

Re: [SOLVED] SAMBA stopped working, AGAIN...

hey... just a note on this for you, but i got this issue a lot.... i have to start my server from /etc/rc.local so the network has time to start up... you can add a sleep command to delay it further as well if required. i kept having to jump to my vnc to restart the samba server then all was fine smile if samba isnt working though, first thing i try is to restart the server daemon, then if still not working, re create your user. this always sorts it smile unless an upgrade has broken something wink


2007 - Started using Arch Linux as my only/main OS
- Samsung Series 3, Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz - 8Gb DDR3 ram - 700Gb HDD
On board intel Graphics & Sound

Offline

Board footer

Powered by FluxBB