代码拉取完成,页面将自动刷新
像访问普通文件夹一样访问树莓派文件系统
sudo apt-get install samba samba-common-bin
sudo smbpasswd -a pi
:输入pi用户的samba访问密码sudo vim /etc/samba/smb.conf
[...省略]
[homes]
comment = Home Directories
browseable = no
# 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 # <-- 如果需要可读可写,改为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 = 0700
[...省略]
sudo systemctl restart smbd.service nmbd.service
root@raspberrypi:/etc/samba# ps aux | grep smb
root 526 0.0 3.1 40716 13948 ? Ss 10:58 0:00 /usr/sbin/smbd
root 530 0.0 1.2 38700 5524 ? S 10:58 0:00 /usr/sbin/smbd
root 531 0.0 1.1 38712 4980 ? S 10:58 0:00 /usr/sbin/smbd
root 544 0.0 1.2 40704 5464 ? S 10:58 0:00 /usr/sbin/smbd
root 730 0.1 3.1 41124 14016 ? S 10:59 0:00 /usr/sbin/smbd
root 818 0.0 0.4 4364 1964 pts/0 S+ 11:07 0:00 grep smb
\\<your ip address>\pi
,按提示输入用户名密码即可。此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。