1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163
|
mkdir -p /data2/sm chmod -R 777 /data2/sm
groupadd dengling useradd -g dengling -s /sbin/nologin dengling
smbpasswd -a dengling
cd /etc/samba cp smb.conf smb.conf.bak vi smb.conf
[global] security = share log file = /var/log/samba/log.%m idmap config * : backend = tdb guest ok = Yes lanman auth = Yes client lanman auth = yes client plaintext auth = yes hosts allow = 127., 172., 192.168.1., 192.168.3. cups options = raw vfs objects = full_audit full_audit:failure = none full_audit:success = rename unlink rmdir open opendir pwrite write full_audit:prefix = %u|%I|%m|% admin log = yes log level = 2 syslog = 2
[homes] comment = Home Directories read only = No browseable = No
[sheji] comment = sheji path = /data2/sm/sheji valid users = share, shenwei, xuwei, shenjiamei, humengchu, rensiqiang, yeting, tongying, jinbo, zengfanan, fengpeisi read only = No create mask = 0775 directory mask = 0775
[test] comment = sheji path = /data2/sm/test valid users = test, test2, shenwei read only = No create mask = 0775 directory mask = 0775
[q2] comment = sheji path = /data2/sm/q2 valid users = xuejia, sungaoshuai, lujingjing, huangsonghe, yefei, lvwenhan, fangyuan, zhanghuichen, liuguofa, xupeiyu, yangpengfei, lisuitao, sunzhen, shenwei, xuwei, shenjiamei, humengchu, rensiqiang, yeting, tongying, jinbo, zengfanan, fengpeisi, chenye, wuailing, pengnan, liangzhixue, chenhong, daimengyou, wangxiaoshuo, zhoujian, fenglu, linlijun, chenshuxian, linzhimin, yanyoushan, xiaguoying, zhanghuanrong, mayushu, xuyangjing, guogaoyan, huangyouyang, jinzhibin, huyuqing, shenxuemei, liukui read only = No create mask = 0775 directory mask = 0775
[market] comment = sheji path = /data2/sm/market valid users = zhanghuichen, shenwei, chenye, wuailing, pengnan, liangzhixue, chenhong, daimengyou, wangxiaoshuo, xuyangjing, chenshuxian, linzhimin, caoling, guogaoyan, xiehaibo, huangyouyang, jinzhibin, huyuqing read only = No create mask = 0777 directory mask = 0775
[market_finance] comment = sheji path = /data2/sm/market_finance valid users = yangqiong, shenwei, chenye, wuailing, pengnan, liangzhixue, chenhong, daimengyou, wangxiaoshuo, xiehaibo, gaofangjie, xuyangjing, chenshuxian, linzhimin, huangyouyang, jinzhibin, huyuqing read only = No create mask = 0777 directory mask = 0775
[shenwei] comment = sheji path = /data2/sm/develop/shenwei valid users = shenwei read only = No create mask = 0777 directory mask = 0775
[qijun] comment = qj path = /data2/sm/homedir/qijun valid users = qijun read only = No create mask = 0777 directory mask = 0775 guest ok = No
[wenyong] comment = sheji path = /data2/sm/develop/wenyong valid users = wenyong read only = No create mask = 0777 directory mask = 0775
[wudi] comment = sheji path = /data2/sm/develop/wudi valid users = wudi read only = No create mask = 0777 directory mask = 0775
[caijiannan] comment = sheji path = /data2/sm/develop/caijiannan valid users = caijiannan read only = No create mask = 0777 directory mask = 0775
[weiduani2] comment = weiduan path = /data2/sm/develop/raochao/微端 valid users = wangfeng read only = No create mask = 0777 directory mask = 0775
[raochao] comment = raochao path = /data2/sm/develop/raochao read list = wangfeng, xuwei, shenjiamei, chenxianzhe, chenye, wuailing, liuyuting, dainan write list = raochao
[product] comment = product path = /data2/sm/product read only = No create mask = 0777 directory mask = 0777
[jinbo] comment = JinBo path = /data2/sm/homedir/jinbo valid users = jinbo read only = No guest ok = No
[xiaoqiang] comment = xiaoqiang path = /data2/sm/homedir/xiaoqiang valid users = xiaoqiang read only = No guest ok = No
[share] comment = share path = /data2/sm/homedir/share valid users = share, market, wal, qijun, zhanghua read only = No
|