Re: HOWTO: Setup Samba peer-to-peer with Windows
Made all those changes still no go same error, here is the updated smb.conf:
Code:
[global]
; General server settings
netbios name = linuxbox
server string = linuxbox
workgroup = jbk
announce version = 5.0
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192
interfaces = lo, ath0
bind interfaces only = true
security = user
null passwords = true
username map = /etc/samba/smbusers
name resolve order = hosts wins bcast
wins support = no
printing = CUPS
printcap name = CUPS
; syslog = 1
syslog only = yes
; encrypt passwords = yes
; guest ok = no
; guest account = nobody
; NOTE: If you need access to the user home directories uncomment the
; lines below and adjust the settings to your hearts content.
;[homes]
;valid users = %S
;create mode = 0600
;directory mode = 0755
;browseable = no
;read only = no
;veto files = /*.{*}/.*/mail/bin/
; NOTE: Only needed if you run samba as a primary domain controller.
; Not needed as this config doesn't cover that matter.
;[netlogon]
;path = /var/lib/samba/netlogon
;admin users = Administrator
;valid users = %U
;read only = no
; NOTE: Again - only needed if you're running a primary domain controller.
;[Profiles]
;path = /var/lib/samba/profiles
;valid users = %U
;create mode = 0600
;directory mode = 0700
;writeable = yes
;browseable = no
; NOTE: Inside this place you may build a printer driver repository for
; Windows - I'll cover this topic in another HOWTO.
[print$]
path = /var/lib/samba/printers
; browseable = yes
guest ok = yes
; read only = yes
write list = root
create mask = 0664
directory mask = 0775
[printers]
path = /tmp
printable = yes
guest ok = yes
browseable = no
; Uncomment if you need to share your CD-/DVD-ROM Drive
;[DVD-ROM Drive]
;path = /media/cdrom
;browseable = yes
;read only = yes
;guest ok = yes
[Media]
path = /media/
browseable = yes
create mask = 0644
directory mask = 0755
force user = krothenbaum
force group = krothenbaum
public = yes
writable = yes
Re: HOWTO: Setup Samba peer-to-peer with Windows
ath0?
Quote:
If bind interfaces only is set then unless the network address
127.0.0.1 is added to the interfaces parameter list smbpasswd(8)
and swat(8) may not work as expected due to the reasons covered
below.
the man page explicitly says not to use this option as it can mess up your configuration. why even set it? it looks like you're just setting random stuff. all i'm doing is comparing your config options to the descriptions in 'man smb.conf'. you can do this too. it's not hard.
Re: HOWTO: Setup Samba peer-to-peer with Windows
Easiest way to network Windows to Ubuntu that I've found (only one that works for me) is in my sig.
Re: HOWTO: Setup Samba peer-to-peer with Windows
here's my config and it works great. also check your router settings, especially when using a static IP. if your DNS settings are incorrect or something you will have issues. i ran into this.
config:
Code:
[global]
; General server settings
netbios name = big
server string = big
workgroup = WORKGROUP
announce version = 5.0
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192
passdb backend = smbpasswd
security = share
null passwords = true
username map = /etc/samba/smbusers
name resolve order = wins bcast hosts
wins support = yes
; printing = CUPS
; printcap name = CUPS
syslog = 1
syslog only = yes
; NOTE: If you need access to the user home directories uncomment the
; lines below and adjust the settings to your hearts content.
;[homes]
;valid users = %S
;create mode = 0600
;directory mode = 0755
;browseable = no
;read only = no
;veto files = /*.{*}/.*/mail/bin/
; NOTE: Only needed if you run samba as a primary domain controller.
; Not needed as this config doesn't cover that matter.
;[netlogon]
;path = /var/lib/samba/netlogon
;admin users = Administrator
;valid users = %U
;read only = no
; NOTE: Again - only needed if you're running a primary domain controller.
;[Profiles]
;path = /var/lib/samba/profiles
;valid users = %U
;create mode = 0600
;directory mode = 0700
;writeable = yes
;browseable = no
; NOTE: Inside this place you may build a printer driver repository for
; Windows - I'll cover this topic in another HOWTO.
;[print$]
; path = /var/lib/samba/printers
; browseable = yes
; guest ok = yes
; read only = yes
; write list = root
; create mask = 0664
; directory mask = 0775
;[printers]
; path = /tmp
; printable = yes
; guest ok = yes
; browseable = no
; Uncomment if you need to share your CD-/DVD-ROM Drive
;[DVD-ROM Drive]
;path = /media/cdrom
;browseable = yes
;read only = yes
;guest ok = yes
[disk]
path = /media/disk/
browseable = yes
read only = yes
guest ok = yes
create mask = 0664
directory mask = 0775
force group = mythtv
Re: HOWTO: Setup Samba peer-to-peer with Windows
BLTicklemonster:
I went through your write up and when I tried to access shares from my windows pc on my linux box I was able to see the workgroup but when I tried to view the contents I got the following error:
The folder contents could not be displayed.
Sorry couldn't display all the contents of "Windows Network:jbk"
moonlightcheese
Yes I was trying random things but I had gone through the original howto twice and had no luck. No matter how I set things up I was getting the same error.
I have my router setup to give each computer on the network a static ip based on their MAC address.
Re: HOWTO: Setup Samba peer-to-peer with Windows
Try backing up smb.cnf (whatever) then remove everything in it, reboot, and start over with a clean state. I had to do that, and it worked.
Re: HOWTO: Setup Samba peer-to-peer with Windows
Congratulations and thank you so much - this is by far and away the best guide yet! I should know, I have seen them all I think!! ;)
Re: HOWTO: Setup Samba peer-to-peer with Windows
For those in Kubuntu, the config interface worked fine for me in Kubuntu when I followed the kubunutguide - very simple.
http://kubuntuguide.org/Gutsy#Filesharing
Important to note that the GUI has a bug that puts problematic lines in:
Code:
Note: If you use Sharing in KDE's System Settings panel, be aware there's a small bug, reported here:
https://bugs.launchpad.net/ubuntu/+source/kdenetwork/+bug/95452 To
summarize, you need to comment out/delete any instances of these two lines in /etc/smb.conf :
case sensitive
msdfs proxy
Re: HOWTO: Setup Samba peer-to-peer with Windows
Stormbringer I can't say thank you enough!!!
This worked like a charm! :-({|=
Now I have to get the Ubuntu to Ubuntu working!!!
Re: HOWTO: Setup Samba peer-to-peer with Windows
Quote:
Originally Posted by
the7yearplan
I have my router setup to give each computer on the network a static ip based on their MAC address.
Just for clarification, is router set to give dynamic there or static IP? If truly static, then your computers need to be set for static as well. If dynamic, then computers need to be set dynamic. Think static is easier for some with file-sharing.
Hope that helps