车间工人,被逼出来的完美!

Windows与Linux档共享SAMBA

上一篇 / 下一篇  2008-05-15 20:28:22 / 个人分类:LINUX相关

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 usernameusername用户添加到smbpasswd文件中,smbpasswd文件中的用户是可以登录的SAMBA用户。

 


TAG:

引用 删除 Guest   /   2008-06-01 11:00:00
搜索 Failed to find entry for user

过来的,

我运气好没郁闷 2小时,有1个小时吧,
搜索到一个
http://hi.baidu.com/ubb3000/blog/item/4028e5f51a5cff20bc3109ce.html
然后知道 redhat不知道从那个版本开始
没有smbuseradd  smbadduser 了
整合到一条
smbpasswd -a     username
创建同时添加密码。。
 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

日历

« 2008-08-22  
     12
3456789
10111213141516
17181920212223
24252627282930
31      

数据统计

  • 访问量: 1143
  • 日志数: 36
  • 建立时间: 2008-01-12
  • 更新时间: 2008-08-14

RSS订阅

Open Toolbar