smb.conf

[global]
        workgroup         = Army97
        netbios name      = Army97
        server string     = Army97
        unix charset      = utf8
        display charset   = utf8
        dos charset       = cp950
        log file          = /var/log/samba/%m.log
        max log size      = 50
        socket options    = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        dns proxy         = no
        template shell    = /bin/false
        winbind use default domain = no
        security          = user
        encrypt passwords = yes
        smb passwd file   = /etc/samba/smbpasswd
#        printcap name     = cups
#        load printers     = yes
#        printing          = cups

        preferred master = yes
        domain master    = yes
        local master     = yes
        wins support     = yes
        wins proxy = yes
        dns proxy = yes
        remote announce = 192.168.0.255 192.168.200.255
        remote browse sync = 192.168.0.255 192.168.200.255
        os level = 255
        domain logons = yes
        logon path    = //%N/profiles/%U
        logon drive   = Z:        
        logon home    = //%N/public
#        logon script  = startup.bat
#        time server   = yes       
        admin users   = F6_Admin       

[netlogon]
   comment         = Network Logon Service
   path            = /home/samba/netlogon
   writable        = no
   write list      = root
   follow symlinks = yes
   guest ok        = yes
   browseable      = no
[homes]
   comment = Home directories
   browseable = no
   writable = yes
   valid users = %S
   create mode = 0664
   directory mode = 0775
[profiles]
   comment = Users profiles
   path    = /home/samba/profiles
   guest ok = no
   browseable = no
   create mask = 0600
   directory mask = 0700
   writable = yes
[temp]
   comment   = Temporary file space
   path      = /tmp
   read only = no
   public    = yes
[public]
   comment = Public directories
   path    = /home/samba/public
   read only = no
   public    = yes
   create mask = 0775
   directory mask = 0775
 

test conf:
testparm

add new computer:
useradd -d /dev/null -s /bin/false --groups xxxx PC01$
smbpasswd -a -m PC04

add new user:
useradd -d /dev/null -s /bin/false --groups xxxx army97
smbpasswd -a army97

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值