Originally Posted by
the7yearplan
I set up samba on my linux desktop so that I could access some files on my windows laptop. I ran through the howto and at first I could not see the linux box at all but after some time popped in the workgroup. If I try to access it however I get the following error message:
"\\Linuxbox is not accessible. You might not have permission to use this network resource. Contact the administrator of this server to find out if you have access permissions.
The network path was not found."
The windows username and password matches the linux username.
Both computers are connected to the router by wireless only, if that makes any difference.
Also here is my smb.conf
Code:
[global]
; General server settings
netbios name = 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
passdb backend = tdbsam
security = user
null passwords = true
username map = /etc/samba/smbusers
name resolve order = hosts wins bcast
wins support = yes
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
valid users = administrator, avahi-autoipd, avahi, backup, bin, daemon, dhcp, games, gdm, gnats, haldaemon, hplip, irc, itunes, klog, krothenbaum, list, lp, mail, man, messagebus, news, nobody, proxy, root, smbguest, statd, sync, sys, syslog, uucp, www-data
available = no
browsable = no
public = no
writable = yes
first of all... you have to have a server string
Code:
server string = linuxbox
second, turn off wins unless you're setting up a static IP and you know what you're doing.
third, what the is this?
Code:
[Media]
path = /media/
; browseable = yes
create mask = 0644
; directory mask = 0755
force user = krothenbaum
force group = krothenbaum
valid users = administrator, avahi-autoipd, avahi, backup, bin, daemon, dhcp, games, gdm, gnats, haldaemon, hplip, irc, itunes, klog, krothenbaum, list, lp, mail, man, messagebus, news, nobody, proxy, root, smbguest, statd, sync, sys, syslog, uucp, www-data
available = no
browsable = no
public = no
writable = yes
this is a little more tidy and... sensible.
Code:
[Media]
path = /media/
browseable = yes
create mask = 0644
directory mask = 0755
force user = krothenbaum
force group = krothenbaum
public = yes
writable = yes
fourth... take out this line:
Code:
passdb backend = tdbsam
because the default value (smbpasswd) does a much better job. then use smbpasswd to add and enable the user krothenbaum in the smbusers database and be sure to use the same password as the login password. you can 'man smbpasswd' if you want more info on smb users.
Bookmarks