Samba doesnt require password on xbmc but does on ubuntu
Posted
by
Chris
on Super User
See other posts from Super User
or by Chris
Published on 2010-09-06T14:11:19Z
Indexed on
2012/10/20
11:06 UTC
Read the original article
Hit count: 259
ubuntu-10.04
|samba
I have samba setup on a fedora 13 machine, and I use it to share with my xbmc client in the family room. When I set this up there no password or anything was required I merely entered in paths such as:
smb://<host>/<share> and all worked.
Now on my ubuntu 10.04 machine when I try to access the same hosts, for example through smbmount though I receive an error.
smbmount //media/Music ~/Music/ # media is in my /etc/hosts and resolves to
# correct IP address for the machine
I receive error: operation not permitted after pressing enter when it prompts for password.
Here is my entry from /etc/samba/smb.conf:
[global]
workgroup = WORKGROUP
server string = Samba Server Version %v
# log files split per-machine:
log file = /var/log/samba/log.%m
# maximum size of 50KB per log file, then rotate:
max log size = 50
security = user
passdb backend = tdbsam
; security = domain
; passdb backend = tdbsam
; realm = MY_REALM
; password server = <NT-Server-Name>
; security = user
; passdb backend = tdbsam
; domain master = yes
; domain logons = yes
; logon script = %m.bat
; logon script = %u.bat
; logon path = \\%L\Profiles\%u
; logon path =
; add user script = /usr/sbin/useradd "%u" -n -g users
; add group script = /usr/sbin/groupadd "%g"
; add machine script = /usr/sbin/useradd -n -c "Workstation (%u)" -M -d /nohome -s /bin/false "%u"
; delete user script = /usr/sbin/userdel "%u"
; delete user from group script = /usr/sbin/userdel "%u" "%g"
; delete group script = /usr/sbin/groupdel "%g"
; local master = no
; os level = 33
; preferred master = yes
; wins support = yes
; wins server = w.x.y.z
; wins proxy = yes
; dns proxy = yes
load printers = yes
cups options = raw
; printcap name = /etc/printcap
# obtain a list of printers automatically on UNIX System V systems:
; printcap name = lpstat
; printing = cups
; map archive = no
; map hidden = no
; map read only = no
; map system = no
; store dos attributes = yes
#============================ Share Definitions ==============================
[homes]
comment = Home Directories
browseable = no
writable = yes
; valid users = %S
; valid users = MYDOMAIN\%S
# Un-comment the following and create the netlogon directory for Domain Logons:
; [netlogon]
; comment = Network Logon Service
; path = /var/lib/samba/netlogon
; guest ok = yes
; writable = no
; share modes = no
# Un-comment the following to provide a specific roving profile share.
# The default is to use the user's home directory:
; [Profiles]
; path = /var/lib/samba/profiles
; browseable = no
; guest ok = yes
# A publicly accessible directory that is read only, except for users in the
# "staff" group (which have write permissions):
; [public]
; comment = Public Stuff
; path = /home/samba
; public = yes
; writable = yes
; printable = no
; write list = +staff
[tv]
comment = TV
path = /media/Isos/tv
public = yes
writable = yes
printable = no
write list = +media
[music]
comment = Music
path = /media/Storage/music/
public = yes
writable = yes
printable = no
write list = +media
[pictures]
comment = Pictures
path = /media/Storage/pictures
public = yes
writable = yes
printable = no
write list = +media
© Super User or respective owner