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

Related posts 相關文章
驗證 AD ldap
More...
打擊 google youtube 看廣告的作法
More...
Windows 無法直接打開 Samba 分享出來的 .exe 執行檔
More...
微軟用了很多錢買了 corp.com 網域
More...

作者

留言

撰寫回覆或留言

發佈留言必須填寫的電子郵件地址不會公開。