1、安装samba
sudo apt-get install samba-common smbclient samba
2、配置samba
sudo vim /etc/samba/smb.conf
[brian]
path = /home/brian
available = yes
browseable = yes
writable = yes
valid users = brian ===> 设置用户
3、设置密码
smbpasswa -a [用户名] 例如:smbpasswa -a brian
new password:[设置你的密码] new password:123456
:再输入一遍 :123456
4、重启生效
service smb restart
时间: 2024-11-05 01:55:07