[Samba] Re: share persistence problem
John H Terpstra
jht at samba.org
Thu May 29 15:52:21 GMT 2003
On Thu, 29 May 2003, Paul Trepanier wrote:
> While you may be onto something, I currently disagree as the samba logs
> show the details of what's happening...
>
> [2003/05/29 08:05:11, 2] smbd/dosmode.c:unix_mode(59)
> unix_mode(Desktop.ini) inheriting from .
> [2003/05/29 08:05:11, 2] smbd/dosmode.c:unix_mode(67)
> unix_mode(Desktop.ini) inherit mode 42775
> [2003/05/29 08:05:11, 2] smbd/dosmode.c:unix_mode(59)
> unix_mode(Desktop.ini) inheriting from .
> [2003/05/29 08:05:11, 2] smbd/dosmode.c:unix_mode(67)
> unix_mode(Desktop.ini) inherit mode 42775
> [2003/05/29 08:05:11, 1] smbd/service.c:make_connection(636)
> sambaclient(111.222.333.444) connect to service home as user
> sambauser(uid=772, gid=10772) (pid 4803)
> [2003/05/29 08:05:11, 2] smbd/dosmode.c:unix_mode(59)
> unix_mode(Desktop.ini) inheriting from .
> [2003/05/29 08:05:11, 2] smbd/dosmode.c:unix_mode(67)
> unix_mode(Desktop.ini) inherit mode 42775
> [2003/05/29 08:05:13, 2] smbd/dosmode.c:unix_mode(59)
> unix_mode(.) inheriting from .
> [2003/05/29 08:05:13, 2] smbd/dosmode.c:unix_mode(67)
> unix_mode(.) inherit mode 42775
> [2003/05/29 08:06:05, 1] smbd/service.c:close_cnum(677)
> sambaclient(111.222.333.444) closed connection to service home
>
> As you can see by the last log entry, samba blows the client off and
> closes the connection less than a minute after it was established. All
> on it's own.
>
> My users simply will not tolerate having to remap drives umpteen times a
> day as doing so to an actual MS windows share does not require constant
> remapping. This behavior is unfortunately a showstopper and I would
> hate to loose the opportunity for samba to address our UNIX filesharing
> problems.
>
> I've found slews of reports of this behavior on google, but all the
> proposed solutions appear to not provide an answer/resolution. Nada @
> samba.org & docs (from my perspective).
There are a number of steps you can take to improve network stability.
1. Change security mode to "security = domain"
- then join the domain using:
smbpasswd -r PDC -j DOMAIN -Uadministrator
2. Change the password server entry to:
"password server = *"
3. Make sure that the user name is identical on Linux as on the domain,
if not use:
username map = /etc/samba/smbusers
In the /etc/samba/smbusers file:
# Unixuser = MSWindowsUser
root = administrator
maryk = mkandoit
Server mode security is a bad hack and should not be used. In any case,
your MS Windows clients will drop idle connections unless you specifically
set the registry entry that controls this to 0 (zero). If your network is
stable, and your Samba server is a domain member, and your MS Windows
clients are full domain members, then reconnects should happen
transparently.
- John T.
>
> Thoughts?
>
>
> John H Terpstra wrote:
> > On Wed, 28 May 2003, Paul Trepanier wrote:
> >
> >
> >>After awhile, my connections from my PC to my samba server end up with a
> >>red "X" in them (share disappeared) if I leave my explorer window open.
> >> If I click on these, they "wake up" and continue to function (and
> >>the red X's go away). If I close my explorer window (while the red X's
> >>are there) and reopen it , they are gone. An attempt to reestablish
> >>these dropped connections is immediately successful.
> >>
> >>This is obviously a connection persistence issue and I've tried setting
> >>both keepalive= and SO_KEEPALIVE (individually, of course) to no avail.
> >>
> >>Any ideas?
> >
> >
> > Your MS Windows client is the culprit - it is dropping idle connections as
> > I recall. Also, you may find that there is a registry setting to turn that
> > feature off.
> >
> > - John T.
> >
> >
> >>My installation is samba 2.2.8 running as a daemon (not inetd) on
> >>Solaris 8 configured to use a WINS server and provide authentication via
> >>a PDC (same host as WINS server). I do have an lmhosts file in the
> >>samba /lib directory with the PDC/WINS server address in it.
> >>
> >>My globals section;
> >>
> >>[global]
> >> workgroup = WORKGROUP
> >> netbios name = SAMBASERVER
> >> security = SERVER
> >> encrypt passwords = Yes
> >> password server = pdc
> >> lanman auth = No
> >> log level = 2
> >> log file = /usr/local/depot/samba-2.2.8/var/%m.log
> >> deadtime = 5
> >> max smbd processes = 5
> >> socket options = IPTOS_LOWDELAY TCP_NODELAY SO_KEEPALIVE
> >> load printers = No
> >> show add printer wizard = No
> >> preferred master = No
> >> local master = No
> >> domain master = No
> >> wins server = [IP address of WINS/PDC server]
> >> follow symlinks = No
> >>
> >>
> >>
> >
> >
>
>
>
--
John H Terpstra
Email: jht at samba.org
More information about the samba
mailing list