/etc/samba/smb.conf 配置文件用于文件共享

发布时间 2023-09-18 10:13:15作者: lancer_hou

[global]
security = user
workgroup = WORKGROUP
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon name = \\%L\%U\.9xprofile
logon driver = P:
user share allow guests = Yes


[homes]
comment = Home Directories
browseable = no
read only = no
create mask = 0755
directory mask = 0755
valid users = %S

 

 

 

 


apt-get install samba

vim /etc/samba/smb.conf

/etc/init.d/samba restart

命令行下添加用户:smbpasswd -a xxx

支持ssh远程 apt-get install ssh