Chinaunix首页 | 论坛 | 博客
  • 博客访问: 473527
  • 博文数量: 67
  • 博客积分: 2952
  • 博客等级: 少校
  • 技术积分: 679
  • 用 户 组: 普通用户
  • 注册时间: 2006-01-24 10:50
文章分类

全部博文(67)

文章存档

2011年(9)

2010年(36)

2009年(8)

2008年(5)

2007年(5)

2006年(4)

我的朋友

分类: LINUX

2009-09-09 09:19:25

  公司里的破storage电源坏了,而且过了保修,再换个电源划不来。刚好有台机器有6块硬盘,还有张raid卡,就凑活凑活当storage用了。
  目标:windows和linux都可访问,即samba 和 nfs都开启。windows用户可以用windows域帐号直接登录,并且别人不可以管理自己的文件。
  环境:centos5.3
  实现:
 nfs: /etc/exports
    /share *(rw,insecure,no_root_squash)
 samba: /etc/samba/smb.conf
   [global]
     workgroup = SZ
     server string = teostore
     security = server
     hosts allow = 127.0.0.1 10.224.100.
     load printers = no
     cups options = raw
     log file = /var/log/samba/%m.log
     max log size = 50
     password server = 10.224.96.222
     dns proxy = no
     add user script = /usr/sbin/useradd -g teo -s /bin/bash %u
   [homes]
     comment = Home Directories
     browseable = no
     writable = yes
   [teostore]
      path = /share
      public = no
      writable = yes
      create mask = 0644
      directory mask = 0755
    最后将/share目录的权限设成1777.
阅读(553) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~