Samba服务器配置与管理全攻略
1. 前期配置
在开始配置Samba服务器之前,需要进行一些前期的准备工作,包括设置用户配置文件路径、默认主驱动器映射以及相关工具的权限设置。
首先,设置用户配置文件路径和默认主驱动器映射:
# The UNC path to profiles locations without the username # last extension (will be dynamically prepended) # Ex: q(\\\\My-PDC-netbios-name\\profiles\\) # Just comment this if you want to use the smb.conf # ’logon path’ directive and/or desabling roaming profiles $_userProfile = q(\\\\MASSIVE\\profiles\\); # The default Home Drive Letter mapping # (automatically mapped at logon time if home directory exists) # Ex: q(U:) for U: #$_userHomeDrive = q(_HOMEDRIVE_); $_userHomeDrive = q(H:);接着,设置密码相关参数:
# Allows not to use smbpasswd # (if $with_smbpass