從XP傳送資料到ubuntu架設的samba server常常會出現錯誤訊息..



贊助商連結


冷月寒羽
2012-08-09, 09:02 AM
每次我用XP傳送資料到samba時會出現一些錯誤訊息
例如磁碟空間已滿..可是還有500多G的空間..inode也有蠻多free的..
或者寫入延遲失敗..無法找到到指定的網路名稱..等等..

有可能是什麼原因造成這種結果..:confused:

贊助商連結


bx2aa
2012-08-09, 01:27 PM
每次我用XP傳送資料到samba時會出現一些錯誤訊息
例如磁碟空間已滿..可是還有500多G的空間..inode也有蠻多free的..
或者寫入延遲失敗..無法找到到指定的網路名稱..等等..

有可能是什麼原因造成這種結果..:confused:
一般沒有足夠資料通常都是直接略過, 後來想到以前 中文化 Tomato Script 說明裏有
就找一下 發現
/etc/samba/smb.conf
至少給一下你的設定.

ls -l <------你的目錄權限是什麼

然後配額只記得 fstab 和 quota 用 google 搜尋一下
Let me google that for you (http://lmgtfy.com/?q=fstab+quota)

我以前寫的 中文化 Tomato Script 說明裏的 SAMBA 設定

UBUNTU 安裝 SAMBA
apt-get install samba
自動安裝
winbind 3.0.26a
smbfs 3.0.26a
smbclient 3.0.26a
samba 3.0.26a
samba-common 3.0.26

設定 SAMBA
-------------------------------------------------------------------------------
/etc/samba/smb.conf
[global]
workgroup = MSHOME
server string = %h server (Samba, Ubuntu)
dns proxy = no
interfaces = 127.0.0.0/8 eth0
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
security = user
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *passwd:*password\supdated\ssuccessfully* .
socket options = TCP_NODELAY

[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
public = no
writable = no
create mode = 0700

[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no

[Tomato]
comment = Tomato Source Code
path = /tomato
valid users = %S
writable = yes
write list = tomato, root, @tomato
browseable = yes
force create mode = 0775
-------------------------------------------------------------------------------
設定使用者存取 SAMBA 權限

useradd -a tomato
123456
123456

smbpasswd -a tomato
123456
123456