2. 配置/etc/samba/smb.conf sudo vi /etc/samba/smb.conf 修改[homes]段为如下: [homes] comment = Home Directories browseable = yes # By default, the home directories are exported read-only. Change the # next parameter to 'no' if you want to be able to write to them. read only = no # File creation mask is set to 0700 for security reasons. If you want to # create files with group=rw permissions, set next parameter to 0775. create mask = 0755 # Directory creation mask is set to 0700 for security reasons. If you want to # create dirs. with group=rw permissions, set next parameter to 0775. directory mask = 0755
3. 增加samba用户: sudo smbpasswd -a pi 输入两次密码,建议与系统保持一致。