Chinaunix首页 | 论坛 | 博客
  • 博客访问: 262393
  • 博文数量: 44
  • 博客积分: 1431
  • 博客等级: 上尉
  • 技术积分: 558
  • 用 户 组: 普通用户
  • 注册时间: 2010-12-24 12:53
文章分类
文章存档

2012年(1)

2011年(28)

2010年(15)

分类: LINUX

2011-09-01 10:57:49

step1 Make sure that samba server has installed in the server. run command: rpm -qa |grep samba
step2 Make a share directory, run command: mkdir /home/tools, then chmod 777 -R /home/tools
step3 vi /etc/samab/smb.conf(Firstly, backup smb.conf as smb.conf.bak)
      add the following scripts at the end of smb.conf
      #This is a shared directory added by customed.
      [SharedDirectory]
      comment = Share by all
      path = /home/tools
      public = yes
      writable = yes
      browseable = yes
step4 Create samba user
      step1 adduser samba
      step2 passwd samba
      step3 touch /etc/samba/smbpasswd
      step4 smbpasswd -a samba
step5 Test samba server
      use command: smbclient -L //localhost/share -U samba
step6 Restart smb server, then you got it
阅读(1165) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~