免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1343 | 回复: 0
打印 上一主题 下一主题

linux smb windows [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-04-15 10:12 |只看该作者 |倒序浏览

                你可以编辑/etc/samba/smb.conf
#============================ Share Definitions ==============================
[share]
        guest account = abc
        comment = share
        public = yes
        path = /tmp/share
#       deny hosts = 10.0.0.
#       guest ok = yes
#       writeable = no
#       browseable = yes
自己选择要注释掉的选项
再来看smb的设定
smbpasswd --help
smbpasswd: invalid option -- -
When run by root:
    smbpasswd [options] [username] [password]
otherwise:
    smbpasswd [options] [password]
Version: 2.2.7a
options:
  -L                   local mode (must be first option)
  -h                   print this usage message
  -s                   use stdin for password prompt
  -c smb.conf file     Use the given path to the smb.conf file
  -D LEVEL             debug level
  -r MACHINE           remote machine
  -U USER              remote username
extra options when run by root or in local mode:
  -a                   add user
  -d                   disable user
  -e                   enable user
  -m                   machine trust account
  -n                   set no password
  -x                   delete user
  -j DOMAIN            join domain name
  -t DOMAIN            change trust account password on domain
  -S DOMAIN            Retrieve the domain SID for DOMAIN
  -R ORDER             name resolve order
举例:
[root@sjb root]# smbpasswd -a abc
New SMB password:
Retype new SMB password:
Added user abc.
解释:
先建立系统用户
useradd username
passwd username
然后把系统用户加入到smb账户数据库中(这一步有的linux免了)
smbadduser username:smbba
/etc/init.d/smb restart 再试试看
               
               
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/47189/showart_537295.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP