/etc/samba/smb.conf 配置文件用于文件共享
[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
posted on 2023-09-18 10:06 lancer_hou 阅读(141) 评论(0) 编辑 收藏 举报