Chinaunix首页 | 论坛 | 博客
  • 博客访问: 173220
  • 博文数量: 59
  • 博客积分: 1410
  • 博客等级: 上尉
  • 技术积分: 580
  • 用 户 组: 普通用户
  • 注册时间: 2009-01-21 06:15
文章分类

全部博文(59)

文章存档

2011年(1)

2010年(1)

2009年(57)

我的朋友

分类: LINUX

2009-01-22 13:02:57

1,列出某个IP地址所提供的共享文件夹 
smbclient -L 198.168.0.1

2,在security=share模式下访问一个匿名可以访问的目录
smbclient //192.168.0.1/目录名

3,像FTP客户端一样使用smbclient 
smbclient //192.168.0.1/tmp  -U username%password 

4,例,创建一个共享文件夹 
smbclient -c "mkdir share1"  //192.168.0.1/tmp  -U username%password 
如果用户共享//192.168.0.1/tmp的方式是只读的,会提示 
NT_STATUS_ACCESS_DENIED making remote directory \share1 
5,除了使用smbclient,还可以通过mount和smbcount挂载远程共享文件夹 
mount -t smbfs -o  username=administrator,password=123456 //192.168.0.1/tmp  /mnt/tmp 
smbmount //192.168.0.1/tmp /mnt/tmp -o username=administrator
阅读(832) | 评论(0) | 转发(0) |
0

上一篇:Samba用户的映射

下一篇:NFS基本配置

给主人留下些什么吧!~~