当前位置: 首页 > 图文教程 > 操作系统 > Unix/Linux > 教你在Linux中验证SMB网络协议

Unix/Linux
LINUX下简单命令
初装ubuntu
Redhat AS 3的LANG的设置
Debian版本小知识
2003服务器,安装了IIS6架设网站问题
前几天最严重的一次错误,导致重装
[vsftpd] 只能上传不能下载
修改了usb_linux的do_mount.c的代码
Fedora Core3上ClamAntiVirus的安装
关于我们的BEIYU
html跳转语句
adobe reader for linux 7
中国黑客精英浮出江湖
Linux必学的系统安全命令
发现很多论坛存在注册ID的BUG
了解Linux的时钟
text
Linux下挂载windows硬盘
致像我一样的Linux初学者
现在开始学习openBSD了

Unix/Linux 中的 教你在Linux中验证SMB网络协议


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-10-20   浏览: 179 ::
收藏到网摘: n/a

  第一步

  挂载

  mount /dev/cdrom /media/cdrom

  rpm -qa   grep samba

  启动service smb start ====/etc/init.d/smb start

  我们共享一个目录:这个目录可以让一个组读写

  第二步

  (groupadd share 新建用户 share 建立用户 user1

  并利用加入到组 usermod -g share user1到组)

  useradd user1

  passwd user1(123)

  groupadd share

  usermod -g share user1

  第三步

  我们追加权限

  chown :share /home/share

  chmod -c g wxr /home/share(权限模式改变成0775rwxrwxr-x)

  第四步

  我们编译samba的配置文件

  vi /etc/samba/smb.conf

  [share]

  comment = samba's share

  writable = yes=@share=write list

  path = /home/share

  还需要吧这个用户写入到smbpasswd里面

  cd /etc/samba

  ls

  smbpasswd -a user1

  我们从客户端验证一下

  运行\\192.168.0.200