标签:comment raw useradd ble 安装配置 comm enable user workgroup
yum install samba
vi /etc/samba/smb.conf [global] workgroup = SAMBA security = user passdb backend = tdbsam printing = cups printcap name = cups load printers = yes cups options = raw [data] comment = data path = /data/part1/share browseable = yes writable = yes guest ok = yes
添加一个用户
useradd sambauser
SMB与系统共用用户名,但不共用密码。也就是说,上面设置的用户名对SMB有效,
但密码对SMB无效,需用smbpasswd命令添加一个密码。
smbpasswd -a sambauser
systemctl start smb
systemctl enable smb
挂载命令
mount -t cifs //172.16.0.15/data /data/part1 -o username=sambauser,password=sambauser,iocharset=utf8
标签:comment raw useradd ble 安装配置 comm enable user workgroup
原文地址:https://www.cnblogs.com/jiangwenhui/p/11326328.html