Helge Schichlein
2006-Dec-26 22:10 UTC
[Samba] Samba shares on Linux machine get disconnected after ~ 1 min
Hi,
I have Samba 3.0.13 running on Suse 9.2 on an i586.
I can browse and connect to the Samba shares on the Linux machine from Windows
XP and Mac OSX.
However, about 1 min after connecting, the shares are lost and gone from the
network environment - same for Windows XP and Mac OSX. From time to time, they
"re-appear" only to be gone after another minute or so.
The Windows shares mounted on the Linux machine work fine.
Is this a known problem?
Regards, Helge
---
This is my smb.conf-file:
# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2005/02/19 17:41:36
# Global parameters
[global]
workgroup = kauai
server string = Samba 3.0.13 at napali.kauai.de
map to guest = Bad User
username map = /etc/samba/smbusers
printcap cache time = 750
logon path = \\%L\profiles\.msprofile
logon drive = P:
logon home = \\%L\%U\.9xprofile
printer admin = @ntadmin, root, administrator
cups options = raw
include = /etc/samba/dhcp.conf
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s
/bin/false %m$
domain logons = No
domain master = No
security = user
[users]
comment = All users
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/
[pdf]
comment = PDF creator
path = /var/tmp
create mask = 0600
printable = Yes
print command = /usr/bin/smbprngenpdf -J '%J' -c %c -s %s -u
'%u' -z %z
[printers]
comment = All Printers
path = /var/tmp
create mask = 0600
printable = Yes
browseable = No
[helge]
comment = Helges ~-Verzeichnis
path = /home/helge
read only = No
[archive]
comment = Archiv: Software, Musik, Bilder, Filme, etc.
path = /archive
read only = No
[backup]
comment = Backup: /home/helge, /etc, /root, /boot
path = /backup
read only = No
[hostfs]
comment = napali host-filesystem
path = /
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
Walter Mautner
2006-Dec-27 11:12 UTC
[Samba] Samba shares on Linux machine get disconnected after ~ 1 min
Helge Schichlein wrote:> Hi, > > I have Samba 3.0.13 running on Suse 9.2 on an i586. > > I can browse and connect to the Samba shares on the Linux machine from > Windows XP and Mac OSX. > > However, about 1 min after connecting, the shares are lost and gone from > the network environment - same for Windows XP and Mac OSX. From time to > time, they "re-appear" only to be gone after another minute or so. >That looks like a browsemaster issue: some other pc is fighting with your samba server to become the workgroup master (and that pc obviously does not carry the shares) ...> # Global parameters > [global] > workgroup = kauai > server string = Samba 3.0.13 at napali.kauai.de > map to guest = Bad User > username map = /etc/samba/smbusers > printcap cache time = 750 > logon path = \\%L\profiles\.msprofile > logon drive = P: > logon home = \\%L\%U\.9xprofile > printer admin = @ntadmin, root, administrator > cups options = raw > include = /etc/samba/dhcp.conf > add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody > -s > /bin/false %m$ > domain logons = No > domain master = No > security = userYou have set "domain master" to no, which just means you don't want your server to appear as a _workgroup_ browse master. Even if you do not want a NT style domain, you should consider changing this - unless you have another domain controller which also does carry the members list by default. But then, you would want a reference to that in your smb.conf as "wins server = <IP>". If you keep running this server 24/7, there should be no reason to not make it "domain master" and "local master" and "preferred master" as well, or / and use the "wins support" directive, together with the "netbios-name-server" stanza in your dhcpd configuration or (done through ADIDAS-Admins) adding the IP of your wins server to each clients tcpip settings - advanced - WINS entries.
Walter Mautner
2006-Dec-27 11:45 UTC
[Samba] Samba shares on Linux machine get disconnected after ~ 1 min
Guido Lorenzutti wrote:> Hi people! I have a few problems with the password strength in Samba. > I have a PDC with LDAP on Debian Stable, with a few packages from > backports. The problem is that I can't find a way to enforce strenght to > the passwords of the users. I can't define a policy to force things like: > number of uppercase letters, number of downcase letters, number of > numbers in the password, to check the diference between the new and the > old, to store a list of old passwords to check... I mean, things that > are requiered to enforce some policy of security by my company. > Bottom line? The users can put his username for password! Not even that > is checked... >Since windows by default only sends encrypted password hashes across the net, it will be impossible to check passwords on the server side. The ldap only stores lanman and nt hashes, except your users change their passwords from a *nix shell.> It's something wrong in my setup or is a feature request? I see min > password length.. but.. the rest? >You will have to employ poledit to generate a useful ntconfig.pol which has to be present in the netlogon share of your DC. There are some basic password checks you can configure there, but they take place at the local client. Ldap can, however, enforce password changes due to the timestamps it stores for password hash changes.