Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.