Windows与Linux档共享SAMBA
Linux系统版本
cat /etc/redhat-release
rpm -qa | grep samba
samba-client-3.0.25b-0.el5.4
samba-common-3.0.25b-0.el5.4
samba-3.0.25b-0.el5.4
system-config-samba-1.2.39-1.el5
Red Hat Enterprise Linux Server release 5.1 (Tikanga)
以前做过﹐没有想到这次又遇到错误……………………….
/etc/samba/smb.conf配置的内容如下
[global]
workgroup = WORKGROUP
server string = SAMBA SERVER
hosts allow = 10.88.8.
# logs split per machine
log file = /var/log/samba/%m.log
# max 50KB per log file, then rotate
max log size = 50
security = user
passdb backend = tdbsam
共享目录
[soft]
comment = Soft Ware
path=/u10/software
writable = yes
valid users = admin
read nly = no
测试是否有不正确的参数
testparm
testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[soft]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
[global]
server string = SAMBA SERVER
passdb backend = tdbsam
log file = /var/log/samba/%m.log
max log size = 50
hosts allow = 10.88.8.
cups ptions = raw
[soft]
comment = Soft Ware
path = /u10/software
valid users = admin
read nly = No
重启SAMBA服务
service smb restart
ERROR1:
smbpasswd admin
New SMB password:
Retype new SMB password:
Failed to find entry for user admin.
Failed to modify password entry for user admin
ERROR2:
smbpasswd -e admin
Failed to find user admin in passdb backend.
郁闷2个多小时﹐最后终于找到原因﹕
smbpasswd的命令使用错误﹐应使用下面的参数
smbpasswd –a admin
New SMB password:
Retype new SMB password:
Added user admin.
注﹕smbpasswd username 修改密码
smbpasswd –a username 把username用户添加到smbpasswd文件中,在smbpasswd文件中的用户是可以登录的SAMBA用户。
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/7419833/viewspace-269231/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/7419833/viewspace-269231/