Click to See Complete Forum and Search --> : Samba with Windows network question
coolwebs
12-10-2002, 09:21 PM
Hi there,
heres my problem, I'm able to see my Linux box in the Network Neighborhood of my two Win 98 SE boxes. When I click on the linux box in the Window, it gives me this \\Motherstation is not accessible
The computer or sharename could not be found. Make sure you typed it correctly, and try again. This is one Win 98SE box. The other asks for a password, but my password is not accepted. Now I used SWAT to configure my SMB.CONF file but I am not sure where the SMB file is located in my /root directory. Please help me....
Thanks,
Wallex
12-10-2002, 10:03 PM
The smb.conf file shouldn't be in /root, it normally is inside /etc (I have it in /etc/samba/samba.conf), you could use 'find -name sama.conf' to locate the file if still unsure where it is. Once you find it... well, would be best to post it here so that people can take a better look at 'what could be wrong' in your network setup.
One doesn't needs a lot of lines written there to get a working configuration... I guess the problem is mainly in the config file because the samba daemon does seem to be running (afterall, it does asks for a password to one of the other pc's).
coolwebs
12-10-2002, 10:51 PM
# Samba config file created using SWAT
# from UNKNOWN (127.0.0.1)
# Date: 2002/12/10 19:58:25
# Global parameters
[global]
netbios name = MOTHERSTATION
interfaces = all active interfaces except 127.0.0.1 that are broadcast capable
log level = 1
log file = /var/log/samba/log.%m
max log size = 50
printcap name = lpstat
local master = No
domain master = no
path = /home/timothy
valid users = Jordan,Laptop
read only = No
guest ok = Yes
hosts allow = 192.168.*.*
printing = cups
unix password sync = no
workgroup = workgroup
encrypt passwords = no
security = user
map to guest = never
password level = 0
null passwords = no
os level = 20
preferred master = no
wins support = no
dead time = 0
debug level = 0
load printers = yes
status = yes
ldap ssl = yes
[homes]
comment = Home Directories
username = Jordan, Laptop
hosts allow = 192.168.1.101,192.168.1.102,192.168.1.103
max connections = 10
[printers]
comment = All Printers
path = /var/spool/samba
read only = Yes
create mask = 0700
printable = Yes
print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.
browseable = No
[print$]
path = /var/lib/samba/printers
write list = @adm root
read only = Yes
[pdf-generator]
comment = PDF Generator (only valid users)
path = /var/tmp
guest ok = No
printable = Yes
print command = /usr/share/samba/scripts/print-pdf %s ~%u \\\\\\\\%L\\\\%u %m %I &
[/home/timothy/]
path = /home/timothy/%s
read only = Yes
hosts allow = 192.168.1.101,192.168.1.102,192.168.1.103,192.168. 1.104,192.168.1.105
[/mnt/]
Tell me what you think......:)
Wallex
12-11-2002, 01:58 AM
Is that a working configuration? Use 'testparm' to test it... I find it a bit odd to see your interface being configured as that. I have it configured as just eth0 (which is my lan's ethernet card). Maybe the users Jordan and laptop are not correctly recognized? That is probably... are 'Jordan' and 'Laptop' the usernames that are being used in the other machines? I have not dealt with users in Samba.. I just made my shares public, and allowed my service only to the ip's in my LAN and through the Eth-card, so I am pretty safe using that scheme. Well.. I guess someone else has to help now, this is as far as my knowledge of Samba goes (plus many of the line definitions there I haven't even heard about before).
Here.. a sample of a very simple shared (readonly)'pub' directory:
[public]
path = /home/pub
comment = Public Directory
printable = no
public = yes
writeable = no
guest only = yes
Yep, that's all I need to have a working shared directory. But I guess that's because my lan at home is pretty simple too.
rival51
12-11-2002, 02:12 PM
?? Doesn't workgroup = need to equal the workgroup your Win machines are members of? [workgroup = HOME] or what ever.
I had to set encrypt passsword = yes
and use smbpassword to set up the windows users & passwords. Once I did that everything was happy happy.