ubuntu samba安装与设置用户密码

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

你可能感兴趣的:(ubuntu,用户,密码,password)