公司里的破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.
阅读(587) | 评论(0) | 转发(0) |