vi /etc/samba/smb.conf
[global]
workgroup = SMOC
netbios name = smbPDC
server string = SMOC Samba Server PDC
security = user
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
log file = /var/log/samba/%m.log
os level = 64
preferred master = yes
doman master = yes
local master = yes
domain logons = yes
logon script = %U.bat
logon drive = X:
logon home = \%L\%u
logon path = \%LProfiles\%U
wins support = yes
dns proxy = no
time server = yes
[homes]
comment = Home Directories
browseable = no
writable = yes
valid users = %S
create mode = 0664
directory mode = 0775
[netlogon]
comment = Network Logon Service
path = /home/netlogon
writable = no
write list = root
follow symlinks = yes
guest ok = yes
[Profiles]
comment = User Profile
path = /home/profiles
read only = no
create mask = 0600
directory mask = 0700
browseable = no
建立相關目錄
mkdir /home/netlogon
mkdir /home/profiles
建立 user account
useradd cross
smbpasswd -a cross
建立 machine account
groupadd smbmachine
useradd -g smbmachine -d /dev/null -c "machine name" -s /bin/false cross$
smbpasswd -a -m cross$ # $ 與 -m 代表 machine
留言