Chinaunix首页 | 论坛 | 博客
  • 博客访问: 284152
  • 博文数量: 82
  • 博客积分: 2607
  • 博客等级: 少校
  • 技术积分: 785
  • 用 户 组: 普通用户
  • 注册时间: 2006-09-14 15:23
文章分类

全部博文(82)

文章存档

2012年(4)

2010年(1)

2009年(2)

2008年(8)

2007年(34)

2006年(33)

我的朋友

分类: LINUX

2008-08-20 14:38:51

安装这些东东
1.
[root@jmao-vm-1 ~]# rpm -qa "*samb*"
samba-client-3.0.10-1.4E.11
system-config-samba-1.2.21-1.el4.1
samba-common-3.0.10-1.4E.11

2.
vi /etc/samba/smb.conf

# the smb.conf man page
hosts allow = 192.168.1. 192.168.2. 127. 10.20.2.52 10.20.

# Security mode. Most people will want user level security. See
# security_level.txt for details.
   security = user


# Do not enable this option unless you have read those documents
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd



   idmap uid = 16777216-33554431
   idmap gid = 16777216-33554431
   template shell = /bin/false
   winbind use default domain = no
[homes]
   comment = Home Directories
   browseable = yes
   writable = yes
   create mask = 0765
##共享了/tmp

[tmp]
   comment = tmp Directories
   browseable = yes
   writable = yes
   create mask = 0765
   path = /tmp



2008-8-15  12:57:10  左高人  毛京京  就是修改一下/etc/samba/smb.conf
2008-8-15  12:57:23  毛京京  左高人  OK
2008-8-15  12:57:41  左高人  毛京京  保证security=user 保证encrypt passwords=yes
2008-8-15  12:57:54  左高人  毛京京  保证smb password file = /etc/samba/smbpasswd
2008-8-15  12:58:06  左高人  毛京京  然后修改一下: [homes]
2008-8-15  12:58:27  左高人  毛京京  browsable = yes writable = yes create mask = 0765
2008-8-15  12:58:49  左高人  毛京京  cat /etc/passwd|mksmbpasswd.sh > /etc/samba/smbpasswd
2008-8-15  12:58:50  毛京京  左高人  security=user  这个user
2008-8-15  12:58:54  毛京京  左高人  是什么
2008-8-15  12:59:03  左高人  毛京京  然后smbpasswd
2008-8-15  12:59:07  左高人  毛京京  然后就可以登录了
2008-8-15  12:59:18  左高人  毛京京  安全级别是用户级



3.
service smb restart


4. on windows
\\10.20.2.111 可以访问啦!多谢谢左高人 哈哈哈!
阅读(919) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~