Samba srever "times out" ... or something
Hello. I have a RedHat 9 box and a Win2000 box networked thru a router. Samba is setup with all the appropriate usernames and passwords (Linux username/password = Windows username/password = Samba username/password). I can connect to shares on both machines from both machines, but periodically the Linux box "falls off" the network. I have to reboot to make the Linux shares available again and to access the Windows shares from Linux. My smb.conf is below (I have changed some host names and usenames to protect the innocent). Also, I would like to check any relevant Samba logs, but I don't know where they are located. Thanks in advance.
# Samba config file created using SWAT # from NAME (127.0.0.1) # Date: 2004/05/16 10:13:19 # Global parameters [global] workgroup = WORKGROUP netbios name = NAME server string = Samba Server encrypt passwords = Yes obey pam restrictions = Yes pam password change = Yes passwd program = /usr/bin/passwd %u passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully* unix password sync = Yes log file = /var/log/samba/%m.log max log size = 0 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 dns proxy = No printing = cups [homes] comment = Home Directories path = /home/user valid users = user read only = No create mask = 0777 directory mask = 0777 [printers] comment = All Printers path = /var/spool/samba printable = Yes browseable = No |
your samba logs are at: /var/log/samba/
|
When your samba shares from linux become unavailable can you still get to your windows shares from linux? Also instead of rebooting next time try (as root) "/sbin/service smbd restart" from the command line without the quotes. This is assuming you are using Redhat9 as noted in your post.
|
Thanks for your replies. I will check the Samba log and I will try restarting Samba next time this happens.
In answer to your question: No, I can't access Windows shares from Linux when this occurs. Actually, thing usually tend to freeze up at about that point and I have to reboot anyway. |
Another thing ... My internet connection seems to do the same thing. If the computer sits for a while, I have to restart it inorder to be able to connect to the internet.
Also, when I CAN access the windows shares from the Linux box, when I try to transfer a large file of folder, the whole system freezes. It's very frustrating. I know I probably don't have everything configured correctly, but so much for Linux being so super stable! |
All times are GMT -5. The time now is 06:13 PM. |