1. 程式人生 > 其它 >ubuntu samba 配置

ubuntu samba 配置

1.samba配置

[email protected]:~# cat /etc/samba/smb.conf
[global] 
        force user = root
        force group = root
        create mask = 0664
        directory mask = 0775
        workgroup = WORKGROUP
        security = user
        map to guest = Bad User
[share] 
        path = /root/workspace/smbshare
;
available = yes ; browseable = yes public = yes writeable = yes [A40i] path = /root/workspace/allwinner/A40i writeable = yes ; browseable = yes valid users = forlinx, nobody,root

2.在windows對映網路位置
在這裡插入圖片描述
注意:對映的網路位置如果無法訪問,主要是因為samba服務的使用者密碼和網路連線時的密碼不一致,可以執行以下命令設定

[email protected]:~# smbpasswd -a
New SMB password:
Retype new SMB password:
[email protected]:~# service smbd restart
smbd stop/waiting
smbd start/running, process 3027