Server keeps dropping network connections

unknownsoul

OSNN Senior Addict
Joined
14 Jan 2004
Messages
604
Hey guys,
To start with, I have a Dell PowerEdge R710 running Ubuntu Server 8.04 LTS.
I have Apache2, Samba, and openssh running on the computer right now.
I have samba shares that I can get to from different computers on the network (both Vista and XP).
However, I keep losing connection at random times (several times an hour) with the shares I setup for them.
I never lose ssh connection though.
Any ideas?

Here's a portion of my daemon.log

Oct 7 11:58:33 Server smbd[29880]: create_builtin_users: Failed to create Users
Oct 7 12:30:33 Server smbd[29981]: [2009/10/07 12:30:33, 0] auth/auth_util.c:create_builtin_administrators(792)
Oct 7 12:30:33 Server smbd[29981]: create_builtin_administrators: Failed to create Administrators
Oct 7 12:30:33 Server smbd[29981]: [2009/10/07 12:30:33, 0] auth/auth_util.c:create_builtin_users(758)
Oct 7 12:30:33 Server smbd[29981]: create_builtin_users: Failed to create Users
Oct 7 13:02:33 Server smbd[30082]: [2009/10/07 13:02:33, 0] auth/auth_util.c:create_builtin_administrators(792)
Oct 7 13:02:33 Server smbd[30082]: create_builtin_administrators: Failed to create Administrators
Oct 7 13:02:33 Server smbd[30082]: [2009/10/07 13:02:33, 0] auth/auth_util.c:create_builtin_users(758)
Oct 7 13:02:33 Server smbd[30082]: create_builtin_users: Failed to create Users
Oct 7 13:13:44 Server smbd[30247]: [2009/10/07 13:13:44, 0] auth/auth_util.c:create_builtin_administrators(792)
Oct 7 13:13:44 Server smbd[30247]: create_builtin_administrators: Failed to create Administrators
Oct 7 13:13:44 Server smbd[30247]: [2009/10/07 13:13:44, 0] auth/auth_util.c:create_builtin_users(758)
Oct 7 13:13:44 Server smbd[30247]: create_builtin_users: Failed to create Users
Oct 7 13:13:48 Server smbd[30247]: [2009/10/07 13:13:48, 0] auth/auth_util.c:create_builtin_administrators(792)
Oct 7 13:13:48 Server smbd[30247]: create_builtin_administrators: Failed to create Administrators
Oct 7 13:13:48 Server smbd[30247]: [2009/10/07 13:13:48, 0] auth/auth_util.c:create_builtin_users(758)
Oct 7 13:13:48 Server smbd[30247]: create_builtin_users: Failed to create Users
Oct 7 13:14:06 Server smbd[30247]: [2009/10/07 13:14:06, 0] auth/auth_util.c:create_builtin_administrators(792)
Oct 7 13:14:06 Server smbd[30247]: create_builtin_administrators: Failed to create Administrators
Oct 7 13:14:06 Server smbd[30247]: [2009/10/07 13:14:06, 0] auth/auth_util.c:create_builtin_users(758)
Oct 7 13:14:06 Server smbd[30247]: create_builtin_users: Failed to create Users


Here's a portion from the syslog

Oct 7 13:01:40 Server -- MARK --
Oct 7 13:02:33 Server smbd[30082]: [2009/10/07 13:02:33, 0] auth/auth_util.c:create_builtin_administrators(792)
Oct 7 13:02:33 Server smbd[30082]: create_builtin_administrators: Failed to create Administrators
Oct 7 13:02:33 Server smbd[30082]: [2009/10/07 13:02:33, 0] auth/auth_util.c:create_builtin_users(758)
Oct 7 13:02:33 Server smbd[30082]: create_builtin_users: Failed to create Users
Oct 7 13:09:01 Server /USR/SBIN/CRON[30107]: (root) CMD ( [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxli\
fetime) -print0 | xargs -r -0 rm)
Oct 7 13:13:44 Server smbd[30247]: [2009/10/07 13:13:44, 0] auth/auth_util.c:create_builtin_administrators(792)
Oct 7 13:13:44 Server smbd[30247]: create_builtin_administrators: Failed to create Administrators
Oct 7 13:13:44 Server smbd[30247]: [2009/10/07 13:13:44, 0] auth/auth_util.c:create_builtin_users(758)
Oct 7 13:13:44 Server smbd[30247]: create_builtin_users: Failed to create Users
Oct 7 13:13:48 Server smbd[30247]: [2009/10/07 13:13:48, 0] auth/auth_util.c:create_builtin_administrators(792)
Oct 7 13:13:48 Server smbd[30247]: create_builtin_administrators: Failed to create Administrators
Oct 7 13:13:48 Server smbd[30247]: [2009/10/07 13:13:48, 0] auth/auth_util.c:create_builtin_users(758)
Oct 7 13:13:48 Server smbd[30247]: create_builtin_users: Failed to create Users
Oct 7 13:14:06 Server smbd[30247]: [2009/10/07 13:14:06, 0] auth/auth_util.c:create_builtin_administrators(792)
Oct 7 13:14:06 Server smbd[30247]: create_builtin_administrators: Failed to create Administrators
Oct 7 13:14:06 Server smbd[30247]: [2009/10/07 13:14:06, 0] auth/auth_util.c:create_builtin_users(758)
Oct 7 13:14:06 Server smbd[30247]: create_builtin_users: Failed to create Users


if you need any other information, please let me know.
 

unknownsoul

OSNN Senior Addict
Joined
14 Jan 2004
Messages
604
I don't really have a choice as to drop it or not...
Do you have another alternative besides switching to ftp? thanks in advance.
 

unknownsoul

OSNN Senior Addict
Joined
14 Jan 2004
Messages
604
[global]

# 1. Server Naming Options:
# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = WORKGROUP

# netbios name is the name you will see in "Network Neighbourhood",
# but defaults to your hostname
netbios name = server

# server string is the equivalent of the NT Description field
server string = %h

# Message command is run by samba when a "popup" message is sent to it.
# The example below is for use with LinPopUp:
; message command = /usr/bin/linpopup "%f" "%m" %s; rm %s

use sendfile = no
# 2. Printing Options:
# CHANGES TO ENABLE PRINTING ON ALL CUPS PRINTERS IN THE NETWORK
# if you want to automatically load your printer list rather
# than setting them up individually then you'll need this
; printcap name = lpstat
; load printers = yes

smb ports = 139

# 3. Logging Options:
# this tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba/log.%m

# Put a capping on the size of the log files (in Kb).
max log size = 500

# Set the log (verbosity) level (0 <= log level <= 10)
log level = 3

hosts allow = 192.168.1. 127.

# Security mode. Most people will want user level security. See
# security_level.txt for details.
security = user

# Use password server option only with security = server or security = domain
# When using security = domain, you should use password server = *
; password server = <NT-Server-Name>
; password server = *

# Password Level allows matching of _n_ characters of the password for
# all combinations of upper and lower case.
; password level = 8
; username level = 8

# You may wish to use password encryption. Please read
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
# Do not enable this option unless you have read those documents
# Encrypted passwords are required for any use of samba in a Windows NT domain
# The smbpasswd file is only required by a server doing authentication, thus
# members of a domain do not need one.
encrypt passwords = yes
smb passwd file = /etc/samba/private/smbpasswd

# The following are needed to allow password changing from Windows to
# also update the Linux system password.
# NOTE: Use these with 'encrypt passwords' and 'smb passwd file' above.
# NOTE2: You do NOT need these to allow workstations to change only
# the encrypted SMB passwords. They allow the Unix password
# to be kept in sync with the SMB password.
unix password sync = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*

# Unix users can map to different SMB User names
username map = /etc/samba/smbusers

# Options for using winbind. Winbind allows you to do all account and
# authentication from a Windows or samba domain controller, creating
# accounts on the fly, and maintaining a mapping of Windows RIDs to unix uid's
# and gid's. winbind uid and winbind gid are the only required parameters.
#
# winbind uid is the range of uid's winbind can use when mapping RIDs to uid's
; winbind uid = 10000-20000
#
# winbind gid is the range of uid's winbind can use when mapping RIDs to gid's
; winbind gid = 10000-20000
#
# winbind separator is the character a user must use between their domain
# name and username, defaults to "\"
; winbind separator = +
#
# template homedir determines the home directory for winbind users, with
# %D expanding to their domain name and %U expanding to their username:
; template homedir = /home/%D/%U
#
# template shell determines the shell users authenticated by winbind get
; template shell = /bin/bash

# 5. Browser Control and Networking Options:
# Most people will find that this option gives better performance.
# See speed.txt and the manual pages for details
# socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=65536 SO_RCVBUF=65536

# Configure Samba to use multiple interfaces
# If you have multiple network interfaces then you must list them
# here. See the man page for details.
; interfaces = 192.168.12.2/24 192.168.13.2/24

# Configure remote browse list synchronisation here
# request announcement to, or browse list sync from:
# a specific host or from / to a whole subnet (see below)
; remote browse sync = 192.168.3.25 192.168.5.255
# Cause this host to announce itself to local subnets here
; remote announce = 192.168.1.255 192.168.2.44

# set local master to no if you don't want Samba to become a master
# browser on your network. Otherwise the normal election rules apply
local master = yes

# OS Level determines the precedence of this server in master browser
# elections. The default value should be reasonable
os level = 67

# Domain Master specifies Samba to be the Domain Master Browser. This
# allows Samba to collate browse lists between subnets. Don't use this
# if you already have a Windows NT domain controller doing this job
# domain master = yes

# Preferred Master causes Samba to force a local browser election on startup
# and gives it a slightly higher chance of winning the election
preferred master = yes

add user script = /usr/sbin/useradd -s /bin/false '%u'
add machine script = /usr/sbin/useradd -d /dev/null -g machines -c 'Machine Account' -s /bin/false %u

# Script for domain member for adding local accounts for authenticated users:
; add user script = /usr/sbin/useradd -s /bin/false %u

# Domain groups:
# domain admin group is a list of unix users or groups who are made members
# of the Domain Admin group
#domain admin group = root @wheel
admin users = root @administratorx

#
# domain guest groups is a list of unix users or groups who are made members
# of the Domain Guests group
; domain guest group = nobody @guest

# 7. Name Resolution Options:
# All NetBIOS names must be resolved to IP Addresses
# 'Name Resolve Order' allows the named resolution mechanism to be specified
# the default order is "host lmhosts wins bcast". "host" means use the unix
# system gethostbyname() function call that will use either /etc/hosts OR
# DNS or NIS depending on the settings of /etc/host.config, /etc/nsswitch.conf
# and the /etc/resolv.conf file. "host" therefore is system configuration
# dependant. This parameter is most often of use to prevent DNS lookups
# in order to resolve NetBIOS names to IP Addresses. Use with care!
# The example below excludes use of name resolution for machines that are NOT
# on the local network segment
# - OR - are not deliberately to be known via lmhosts or via WINS.
; name resolve order = wins lmhosts bcast

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
wins support = yes

# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
; wins server = w.x.y.z

# WINS Proxy - Tells Samba to answer name resolution queries on
# behalf of a non WINS capable client, for this to work there must be
# at least one WINS Server on the network. The default is NO.
; wins proxy = yes

# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups. The built-in default for versions 1.9.17 is yes,
# this has been changed in version 1.9.18 to no.
dns proxy = no

# 8. File Naming Options:
# Case Preservation can be handy - system default is _no_
# NOTE: These can be set on a per share basis
; preserve case = no
; short preserve case = no
# Default case is normally upper case for all DOS files
; default case = lower
# Be very careful with case sensitivity - it can break things!
; case sensitive = no

kernel oplocks = no


#============================ Share Definitions ==============================
[homes]
comment = Home Directories
browseable = no
writable = yes
create mask = 0775
directory mask = 0775
veto files = /*Maildir*/.*/
#veto files = .procmailrc

[ccfw]
comment = ccfw
path = /var/data/samba/ccfw
public = yes
writable = yes
guest ok = yes
create mask = 0770
force create mode = 0770
security mask = 0770
directory mode = 0770
force group = ccfw
read only = no
oplocks = no
valid users = @ccfw
#level 2 oplocks = no
force create mode = 0770
force directory mode = 0770
[lnf]
comment = lnf
path = /var/data/samba/lnf
public = yes
writable = yes
guest ok = yes
create mask = 0770
force create mode = 0770
security mask = 0770
directory mode = 0770
force group = lnf
read only = no
oplocks = no
valid users = @lnf
#level 2 oplocks = no
force create mode = 0770
force directory mode = 0770

[pastor]
comment = pastor
path = /var/data/samba/pastor
public = yes
writable = yes
guest ok = yes
create mask = 0770
force create mode = 0770
security mask = 0770
directory mode = 0770
force group = pastor
read only = no
oplocks = no
valid users = @pastor
#level 2 oplocks = no
force create mode = 0770
force directory mode = 0770

# A publicly accessible directory, read/write to all users. Note that all files
# created in the directory by users will be owned by the default user, so
# any user with access can delete any other user's files. Obviously this
# directory must be writable by the default user. Another user could of course
# be specified, in which case all files would be owned by that user instead.
[public]
path = /var/data/samba
public = yes
only guest = yes
writable = yes
printable = no
 

Dark Atheist

OSNN Veteran Addict
Political Access
Joined
8 Apr 2003
Messages
6,376
socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=65536 SO_RCVBUF=65536

that looks abnormally high to me, i would try dropping it to the standard 8192 , if all works ok you can try upping it to 16384.

Here is my old smb.conf (no need now i only have 1 pc)

Code:
[global]
workgroup = SECTION9
server string = Samba Server %v
printcap name = cups
printing = cups
load printers = yes
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
interfaces = lo eth0
bind interfaces only = yes
hosts allow = 127.0.0.1 192.168.1.0/24
hosts deny = 0.0.0.0/0
security = user
guest ok = no

[print$]
comment = Printer Drivers
path = /etc/samba/printer
guest ok = yes
browseable = yes
read only = yes
write list = root


[HPDeskJet930C]
comment = HP DeskJet 930C Network Printer
printable = yes
path = /var/spool/samba
public = yes
guest ok = yes
printer admin = root


[printers]
comment = All Printers
browseable = no
printable = yes
writable = no
public = yes
guest ok = yes
path = /var/spool/samba
printer admin = root

[myfiles]
comment = My Files
browseable = yes
writable = yes
public = no
create mask = 0644
directory mask = 0755
guest ok = no
path = /home/user
Basic i know but it works, you could try something like this and see if your issues still remain, if so then there is something else a foot, if it does work then its a setting within your samba that has started to get upset
 

stevebroome

OSNN One Post Wonder
Joined
13 Oct 2009
Messages
1
Unknownsoul,

I have had the same scenario for about two weeks and just found my solution. When i as on my vista computer, my file shares would be working perfectly. I could step away for a few minutes or overnight and suddenly they disappear when i click on network. I could reboot the computers, reload the smb.conf file and sometimes it would show back up and sometimes it would not. I have wrestled with samba for about 3 weeks now and understand it a lot better now. Here's what worked for me:

In your smb.conf file, you have the netbios name = server. I also had to add the following option:

wins support = yes

As long as I use the netbios name AND wins support options, I do not have a problem with vista losing connectivity with my samba shares. If I were to comment out these two optioins, of course my computer shows up as my computer name, instead of the netbios name when looking from vista. And that's when I have problems.

I'm not real familar with exactly what these two settins do, as far as understanding them technically speaking, but give this a try. Add this option in the [Golbals] section right under your netbios entry. Let me know if this works..

Steve
 

Dark Atheist

OSNN Veteran Addict
Political Access
Joined
8 Apr 2003
Messages
6,376
he has both options enabled on his system and still he gets the error
 

unknownsoul

OSNN Senior Addict
Joined
14 Jan 2004
Messages
604
I put the change in, and I'll give it a few hours to see how it does. Thanks for the help!
 

Dark Atheist

OSNN Veteran Addict
Political Access
Joined
8 Apr 2003
Messages
6,376
is there anything windows event log that might explain any drop outs
 

Dark Atheist

OSNN Veteran Addict
Political Access
Joined
8 Apr 2003
Messages
6,376
i get an annoying issue on mac whereby if the thing goes to sleep when it wakes up i cant connect to a windows share unless i reboot the mac :/
 

Members online

No members online now.

Latest profile posts

hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.
Terrahertz wrote on Electronic Punk's profile.
Yo fellas!
Electronic Punk wrote on Sazar's profile.
Where are you buddy?
Perris Calderon wrote on Electronic Punk's profile.
Hey EP! All good with me, applying for Microsoft MVP right now, should have done this a while ago.

Notifications don't work, I only found your response by coming back to hunt up some threads, if you want, give me your email address so we can keep in touch easier!

Forum statistics

Threads
61,999
Messages
673,426
Members
5,593
Latest member
moussa021