Windows与Linux档共享SAMBA

WindowsLinux档共享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/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值