View previous topic :: View next topic |
Author |
Message |
JanErik Guru
Joined: 28 Oct 2002 Posts: 488 Location: Finland
|
Posted: Thu Mar 10, 2005 11:20 am Post subject: Simple Samba config - what's wrong here? |
|
|
I want to set up a simple Samba file share on one of my machines. Followed the Gentoo documentation, but it doesn't seem to work.
Should the share show up in My Computer or Network Neighbourhood? I have Windows 2000, but it just hangs for about a minute when I try to open "Computers Near Me" or "Entire Network -> Microsoft Windows Network" in Network Neighbourhood.
The Windows machine also has "WORKGROUP" as workgroup.
Do I need to create an account "samba" on any of the machines?
I don't need any security, it should be completely public and writeable.
This is my smb.conf:
Code: |
[global]
workgroup = WORKGROUP
server string = Samba Server %v
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.0.2
hosts deny = 0.0.0.0/0
security = share
guest account = samba
guest ok = yes
[public]
comment = Public Files
browseable = yes
public = yes
create mode = 0766
guest ok = yes
path = /share
|
|
|
Back to top |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Thu Mar 10, 2005 11:52 am Post subject: |
|
|
Public and guest ok are synonymous; you only need one.
Set the os level and browser preferences to favor the Samba machine; this will ease sharing with NT+ style systems.
Code: | os level = 99
master browser = yes
preferred browser = yes
wins support = yes |
Then try connecting from the samba machine to itself with smbclient. _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
|
JanErik Guru
Joined: 28 Oct 2002 Posts: 488 Location: Finland
|
Posted: Thu Mar 10, 2005 12:15 pm Post subject: |
|
|
Well, now it works, although testparm gives:
Code: | Load smb config files from /etc/samba/smb.conf
Unknown parameter encountered: "master browser"
Ignoring unknown parameter "master browser"
Unknown parameter encountered: "preferred browser"
Ignoring unknown parameter "preferred browser"
|
And scandinavian characters show up as a "_", where could that be fixed? |
|
Back to top |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Thu Mar 10, 2005 12:49 pm Post subject: |
|
|
Perhaps my smb.conf is a bit rusty; check the manual for the real options
The characters can be "fixed" by selecting and applying the correct NLS codepage to your samba shares - probably the same one you use in Windows, since you presumably store files from Windows. _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
|
|