Sambaが一部の共有への書き込みを許可しない


1

私はubuntuにかなり慣れていないため、sambaで問題が発生しています。私はXBMCbuntuを使用していますが、家族と共有している共有と共有していない共有があります。これは私の設定ファイルで確認できます。

[global]
workgroup = WORKGROUP
server string = %h server (Samba, XBMC)
netbios name = XBMC
dns proxy = no
name resolve order = hosts wins bcast
guest account = scrub
load printers = no
show add printer wizard = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n $
pam password change = yes
map to guest = bad user
force user = matt
force group = matt

[Pictures]
path = /home/matt/hdd1/Pictures
comment = Pictures
writeable = yes
browseable = yes
guest ok = yes

[System]
path = /home/matt/.xbmc
comment = XBMC System Share
valid users = matt
writeable = yes
browseable = yes
guest ok = no

[Root]
path = /
comment = Root acess
valid users = matt
writeable = yes
browseable = yes
guest ok = no


[Other]
path = /home/matt/hdd1/other
comment = other
valid users = matt
writeable = yes
browseable = yes
guest ok = no

「pictures」共有は正しく機能しており、誰でも読み取り/書き込みできます。「システム」共有は正常に機能しており、私だけが読み書きできます。

「ルート」と「その他」の共有が希望どおりに機能しない場合でも、読み取りはできるが書き込みはできないのは私だけです。

一部のファイルシステムのアクセス許可を変更しようとしましたが、あまり詳しくないので、それが問題であるとは思いません。

どんな助けも素晴らしいでしょう。

0

Hivemind, Your samba configuration looks correct, so my best guess would be file-system permissions. Your user, "matt", may not have access to write to those directories. Are you able to navigate to another folder you can write to from your root share? (Note: sharing the root of your filesystem is not the best idea in the world.) If so, then it almost certainly is file-system permissions, and if you do need to have write-access to a folder, your best bet will be chmod commands. A good tutorial on those can be found here:

http://www.linux.org/threads/file-permissions-chmod.4094/

Note that this should be done with caution, and selectively.