samba伺服器的問題

火星人 @ 2014-03-04 , reply:0


samba伺服器的問題

請教大家:

我編輯完smb.conf后,用testparm差錯,出現這個提示:

Load smb config files from /etc/samba/smb.conf
params.c:Parameter() - Ignoring badly formed line in configurationfile : i
Processing section ""
......


這個第一個錯誤,【params.c:Parameter() - Ignoring badly formed line in configurationfile : i】

是咋回事阿?

然後我做個測試,想加入用戶(配置的是有許可權的)
同時作smbpasswd -a xxxxx,加入新用戶名,不好使,輸入2次密碼后不好使,請問如何解決。謝謝


#####################################################
#####################################################

今天修改和增加的就是
security = user
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
name resolve order = lmhosts bcast host




comment = Home directories
valid users = %S
read only = No
create mask = 0664
directory mask = 0775
browseable = No


comment = the user groups work directory
path = /home/public
valid users = @users
read only = No
guest ok = yes

testparm后,出現修改的命令是


dos charset = GB2312 //allow the client too change thir languages in Chinese (GB2312)
unix charest = GB2312
dispaly charset = GB2312
netbios name = SAMBA-SERVER
server string = Samba Server Version %v at %h
passdb backed = tdsam
username map = /etc/samb/smbusers
logfile = /var/log/samba/%m.log
max log size = 50
name resolve order = lmhosts bcast host
socket opetion = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = No
create mask = 0777
force create mode = 0777
force security mode = 0777
directory mask = 0777
force directory mode = 0777
force directory security mode = 0777
hosts allow = 127. , 192.168.1.
cups options = raw




comment = Home directories
valid users = %S
read only = No
create mask = 0664
directory mask = 0775
browseable = No


comment = the user groups work directory
path = /home/public
valid users = @users
read only = No
guest ok = yes



comment = local resource
path = /var/samba/resource
guest ok = yes



comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No


comment = Temporary fiel space
path = /tmp
read only = No
guest ok = yes



[火星人 via ] samba伺服器的問題已經有66次圍觀

http://www.coctec.com/docs/service/show-post-14927.html