一、CentOS 搭建samba
- yum install samba samba-client samba-swat
- rpm -qa|grep samba
smbpasswd -a 用户名 (用户名可以是提前已经存在的用户)
配置文件路径:
/etc/samba/smb.conf
二、ubuntu 搭建samba
配置文件实例
[share]
path = /home/john/share
available = yes
browseable = yes
public = yes
writable = yes
valid users =myname
create mask = 0700
directory mask =0700
force user =nobody
force group = nogroup
时间: 2024-10-24 23:15:04