У меня есть настройка samba на машине fedora 13, и я использую ее, чтобы поделиться с моим клиентом xbmc в семейной комнате. Когда я установил это там, пароль или что-то не требовалось, я просто вводил пути, такие как:
smb://<host>/<share> and all worked.
Теперь на моей машине с Ubuntu 10.04, когда я пытаюсь получить доступ к тем же хостам, например, через smbmount, хотя получаю ошибку.
smbmount //media/Music ~/Music/ # media is in my /etc/hosts and resolves to
# correct IP address for the machine
Я получаю сообщение об ошибке: операция не разрешена после нажатия клавиши ввода, когда запрашивается пароль.
Вот моя запись из /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