samba 設定 - Linux

By Ursula
at 2011-10-02T13:52
at 2011-10-02T13:52
Table of Contents
小弟弟我想利用 samba 與家中另外一台電腦作區網
但在 samba 設定上遇到好多坑...
我的電腦︰ubuntu 10.04
安裝 samba 方法為 sudo apt-get install samba smbfs
也按照鳥哥方法的一步一步學習 samba
# testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
Processing section "[share]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
[global]
workgroup = IDNNLCOM
netbios name = IDNNLSERVER
server string = This is idnnl's samba server
security = SHARE
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:*
%n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
[share]
path = /home/idnnl/share
valid users = idnnl
read only = No
create mask = 0755
guest ok = Yes
但是出現錯誤 1)
# smbclient -L //127.0.0.1
Enter idnnl's password:
Domain=[IDNNLCOM] OS=[Unix] Server=[Samba 3.4.7]
Sharename Type Comment
--------- ---- -------
share Disk
IPC$ IPC IPC Service (This is idnnl's samba server)
Domain=[IDNNLCOM] OS=[Unix] Server=[Samba 3.4.7]
Server Comment
--------- -------
Workgroup Master
--------- -------
如上,server 與 workgroup 皆無法出現
接著是錯誤 2)
# sudo mount -t smbfs //127.0.0.1/idnnl/share /mnt/isoo
retrying with upper case share name
mount error(6): No such device or address
以上小弟弟我也嘗試詢問 google 是否有解決之道
於是小弟弟我將防火牆關了、Selinux 也 disabled、也用以下指令檢查是否有啟動
# sudo netstat -anp |grep mbd
tcp6 0 0 :::139 :::* LISTEN
1155/smbd
tcp6 0 0 :::445 :::* LISTEN
1155/smbd
udp 0 0 0.0.0.0:137 0.0.0.0:*
1200/nmbd
udp 0 0 0.0.0.0:138 0.0.0.0:*
1200/nmbd
嘗試種種之後結果還是一樣的... Orz
請問是哪邊設定出問題了嗎??
--
You can never plan the future by the past
--
但在 samba 設定上遇到好多坑...
我的電腦︰ubuntu 10.04
安裝 samba 方法為 sudo apt-get install samba smbfs
也按照鳥哥方法的一步一步學習 samba
# testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
Processing section "[share]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
[global]
workgroup = IDNNLCOM
netbios name = IDNNLSERVER
server string = This is idnnl's samba server
security = SHARE
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:*
%n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
[share]
path = /home/idnnl/share
valid users = idnnl
read only = No
create mask = 0755
guest ok = Yes
但是出現錯誤 1)
# smbclient -L //127.0.0.1
Enter idnnl's password:
Domain=[IDNNLCOM] OS=[Unix] Server=[Samba 3.4.7]
Sharename Type Comment
--------- ---- -------
share Disk
IPC$ IPC IPC Service (This is idnnl's samba server)
Domain=[IDNNLCOM] OS=[Unix] Server=[Samba 3.4.7]
Server Comment
--------- -------
Workgroup Master
--------- -------
如上,server 與 workgroup 皆無法出現
接著是錯誤 2)
# sudo mount -t smbfs //127.0.0.1/idnnl/share /mnt/isoo
retrying with upper case share name
mount error(6): No such device or address
以上小弟弟我也嘗試詢問 google 是否有解決之道
於是小弟弟我將防火牆關了、Selinux 也 disabled、也用以下指令檢查是否有啟動
# sudo netstat -anp |grep mbd
tcp6 0 0 :::139 :::* LISTEN
1155/smbd
tcp6 0 0 :::445 :::* LISTEN
1155/smbd
udp 0 0 0.0.0.0:137 0.0.0.0:*
1200/nmbd
udp 0 0 0.0.0.0:138 0.0.0.0:*
1200/nmbd
嘗試種種之後結果還是一樣的... Orz
請問是哪邊設定出問題了嗎??
--
You can never plan the future by the past
--
Tags:
Linux
All Comments

By Necoo
at 2011-10-02T18:04
at 2011-10-02T18:04

By Frederic
at 2011-10-06T06:07
at 2011-10-06T06:07

By Hamiltion
at 2011-10-09T23:07
at 2011-10-09T23:07

By Iris
at 2011-10-14T14:55
at 2011-10-14T14:55

By Carolina Franco
at 2011-10-18T16:51
at 2011-10-18T16:51

By Edwina
at 2011-10-19T06:57
at 2011-10-19T06:57

By Eartha
at 2011-10-19T12:05
at 2011-10-19T12:05

By Irma
at 2011-10-21T02:22
at 2011-10-21T02:22

By Annie
at 2011-10-25T19:37
at 2011-10-25T19:37

By Christine
at 2011-10-26T04:28
at 2011-10-26T04:28

By Christine
at 2011-10-30T18:18
at 2011-10-30T18:18

By Liam
at 2011-11-02T18:39
at 2011-11-02T18:39

By Barb Cronin
at 2011-11-03T09:30
at 2011-11-03T09:30

By Carol
at 2011-11-04T08:24
at 2011-11-04T08:24

By Hedda
at 2011-11-06T20:38
at 2011-11-06T20:38

By Skylar Davis
at 2011-11-11T09:40
at 2011-11-11T09:40

By Candice
at 2011-11-13T05:06
at 2011-11-13T05:06

By Callum
at 2011-11-15T08:08
at 2011-11-15T08:08

By Callum
at 2011-11-18T13:19
at 2011-11-18T13:19

By Suhail Hany
at 2011-11-21T19:45
at 2011-11-21T19:45

By Valerie
at 2011-11-24T02:11
at 2011-11-24T02:11

By Lily
at 2011-11-25T08:01
at 2011-11-25T08:01
Related Posts
CentOS yum 鏡像來源

By Andy
at 2011-10-02T13:11
at 2011-10-02T13:11
w3m神奇的stdout

By Blanche
at 2011-10-02T04:01
at 2011-10-02T04:01
OpenSUSE偵測不到無線網路

By Zora
at 2011-10-02T00:44
at 2011-10-02T00:44
灌完Ubuntu後無法連無線網路

By Isla
at 2011-10-01T23:54
at 2011-10-01T23:54
CentOS yum 鏡像來源

By Isla
at 2011-10-01T20:52
at 2011-10-01T20:52