• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Samba problems

MJT2k

Senior member
I have samba 2.0.7 running on a Slackware 7.1 box and I can't connect to the samba server through Network Neighborhood. I can ping the linux box using both its Netbios Name and its IP. I can connect to the Swat config page using a browser. I can also telnet into the linux box. The exact error I am getting is "Cannot find the file or item '\\Linux'. Make sure the path and file name are correct." This was working eariler today before I rebooted me linux box. Any suggestions.
 
Yes, they are. I have tried restarting them but that didn't work. I can do a smbclient test from the linux box that works, it lets me see the share that I want, I can browse the share using the linux box but I can't see the linux box from any of my windows boxes.
 
My Mandrake box gets tempermental too (but it might just get overloaded, it's a P166). I never shutdown or reboot if I can help it.

Once we get to see your conf file, I bet we can tweak the master browser settings. Seems to be that helped my problems at first (they were like yours).
 
Here is what Swat reports for the smb.conf file:


# Samba config file created using SWAT
# from 192.168.0.2 (192.168.0.2)
# Date: 2001/06/11 16:55:20

# Global parameters
[global]
coding system =
client code page = 850
workgroup = CST
netbios name =
netbios aliases =
netbios scope =
server string = Samba Server
interfaces =
bind interfaces only = No
security = USER
encrypt passwords = Yes
update encrypted = Yes
allow trusted domains = Yes
hosts equiv =
min password length = 5
map to guest = Never
null passwords = No
password server =
smb passwd file = /usr/lib/samba/private/smbpasswd
root directory = /
passwd program = /bin/passwd
passwd chat = *new*password* %n\n *new*password* %n\n *changed*
passwd chat debug = No
username map =
password level = 0
username level = 0
unix password sync = No
restrict anonymous = No
use rhosts = No
debug level = 1
syslog = 1
syslog only = No
log file = /var/log/samba.%m
max log size = 50
debug timestamp = Yes
debug hires timestamp = No
debug pid = No
debug uid = No
protocol = NT1
read bmpx = No
read raw = Yes
write raw = Yes
nt smb support = Yes
nt pipe support = Yes
nt acl support = Yes
announce version = 4.2
announce as = NT
max mux = 50
max xmit = 65535
name resolve order = lmhosts host wins bcast
max ttl = 259200
max wins ttl = 518400
min wins ttl = 21600
time server = No
change notify timeout = 60
deadtime = 0
getwd cache = Yes
keepalive = 300
lpq cache time = 10
max disk size = 0
max open files = 10000
read prediction = No
read size = 16384
shared mem size = 1048576
socket options = TCP_NODELAY
stat cache size = 50
load printers = Yes
printcap name = /etc/printcap
printer driver file = /etc/printers.def
strip dot = No
character set =
mangled stack = 50
stat cache = Yes
domain groups =
domain admin group =
domain guest group =
domain admin users =
domain guest users =
machine password timeout = 604800
add user script =
delete user script =
logon script =
logon path = \\%N\%U\profile
logon drive =
logon home = \\%N\%U
domain logons = Yes
os level = 20
lm announce = Auto
lm interval = 60
preferred master = No
local master = Yes
domain master = No
browse list = Yes
dns proxy = Yes
wins proxy = No
wins server =
wins support = Yes
wins hook =
kernel oplocks = Yes
ole locking compatibility = Yes
oplock break wait time = 10
smbrun = /usr/bin/smbrun
config file =
auto services =
lock directory = /var/lock
default service =
message command =
dfree command =
valid chars =
remote announce =
remote browse sync =
socket address = 0.0.0.0
homedir map =
time offset = 0
unix realname = No
NIS homedir = No
source environment =
panic action =
comment =
path =
revalidate = No
username =
guest account = guest
invalid users =
valid users =
admin users =
read list =
write list =
force user =
force group =
writeable = No
create mask = 0744
force create mode = 00
security mask = -1
force security mode = -1
directory mask = 0755
force directory mode = 00
directory security mask = -1
force directory security mode = -1
inherit permissions = No
guest only = No
guest ok = No
only user = No
hosts allow = 192.168. 127.
hosts deny =
status = Yes
max connections = 0
min print space = 0
strict sync = No
sync always = No
write cache size = 0
printable = No
postscript = No
printing = bsd
print command = lpr -r -P%p %s
lpq command = lpq -P%p
lprm command = lprm -P%p %j
lppause command =
lpresume command =
queuepause command =
queueresume command =
printer =
printer driver = NULL
printer driver location =
default case = lower
case sensitive = No
preserve case = Yes
short preserve case = Yes
mangle case = No
mangling char = ~
hide dot files = Yes
delete veto files = No
veto files =
hide files =
veto oplock files =
map system = No
map hidden = No
map archive = Yes
mangled names = Yes
mangled map =
browseable = Yes
blocking locks = Yes
fake oplocks = No
locking = Yes
oplocks = Yes
level2 oplocks = No
oplock contention limit = 2
strict locking = No
share modes = Yes
copy =
include =
preexec =
preexec close = No
postexec =
root preexec =
root preexec close = No
root postexec =
available = Yes
volume =
fstype = NTFS
set directory = No
wide links = Yes
follow symlinks = Yes
dont descend =
magic script =
magic output =
delete readonly = No
dos filetimes = No
dos filetime resolution = No
fake directory create times = No

[homes]
comment = Home Directories
path = %H
guest account =
writeable = Yes

[Profiles]
path = /usr/local/samba/profiles
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

[public]
comment = Public Stuff
path = /home/samba
write list = @root
writeable = Yes
guest ok = Yes

[root]
path = /
guest account =

 
Now I can see the Linux Box from my Windows box. I would still like to know why it didn't work last night or this morning for me.
 
max connections = 0 looks odd. Mine is 10, you might want to change that.

Other then that, I have these, among other settings (notice I run under the 192.168.2 subnet):

------------------------------------------------------------
If you have multiple network interfaces then you must list them
# here. See the man page for details.
interfaces = 192.168.2.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.2.255
# Cause this host to announce itself to local subnets here
remote announce = 192.168.2.255

# Browser Control Options:
# 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 = 33

# 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

------------------------------------------------------------

I think there's a better setting for os level, but I don't remember if higher or lower is good. Browse master settings being too close to normal for Win98 will cause things not to show up if one system starts before/after the other. As is the problem with shutting down or restarting with other systems running (or not running at the time).
 
By the way, that's an ugly smb.conf file, there's no comments! I guess you use swat anyway, but how anyone could manually edit that without a handbook or reference guide in front of them is beyond me.
 
Back
Top