1.啟動方法
/etc/rc.d/init.d/smb {start|stop/reload/status/restart}
或是
smbd;nmbd
/etc/rc.d/init.d/smb {start|stop/reload/status/restart}
或是
smbd;nmbd
2.相關設定檔
位置: /etc/samba/smb.conf
設定檔測試:testparm
# Global parameters
[global]
dos charset = big5
unix charset = big5
workgroup = SCLAB
server string = Samba Server
log file = /var/log/samba/%m.log
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = /etc/printcap
dns proxy = No
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
hosts allow = 140.138.148., 127.
cups options = raw
[global]
dos charset = big5
unix charset = big5
workgroup = SCLAB
server string = Samba Server
log file = /var/log/samba/%m.log
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = /etc/printcap
dns proxy = No
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
hosts allow = 140.138.148., 127.
cups options = raw
[fileshare]
comment = wchwch's file share
path = /nthd
public = yes
guest ok = no
read only = no
browseable = yes
writable = yes
comment = wchwch's file share
path = /nthd
public = yes
guest ok = no
read only = no
browseable = yes
writable = yes
3.啟動流程
a. security =user (原本為share)
b. cat /etc/passwd | mksmbpasswd.sh > /etc/samba/smbpasswd
(將passwd密碼檔轉換成samba的密碼檔)
c. chmod 600 /etc/samba/smbpasswd (修改密碼權限增加安全性)
d. 然後利用smbpasswd的指令設定samba的帳號與密碼
b. cat /etc/passwd | mksmbpasswd.sh > /etc/samba/smbpasswd
(將passwd密碼檔轉換成samba的密碼檔)
c. chmod 600 /etc/samba/smbpasswd (修改密碼權限增加安全性)
d. 然後利用smbpasswd的指令設定samba的帳號與密碼
沒有留言:
張貼留言