Chinaunix首页 | 论坛 | 博客
  • 博客访问: 384382
  • 博文数量: 63
  • 博客积分: 3142
  • 博客等级: 中校
  • 技术积分: 838
  • 用 户 组: 普通用户
  • 注册时间: 2007-12-06 13:35
文章分类

全部博文(63)

文章存档

2011年(2)

2010年(114)

2009年(3)

我的朋友

分类: LINUX

2010-07-15 17:17:59


第一篇日志:
真是有点烦躁,,,本来信心挺高的,安装了刚刚发布的Red Hat Enterprise Linux5.0,讨厌的是有些东西竟然升级了,取消了,淘汰了。
查看rhel的版本信息:
#cat /etc/redhat-release
在red hat linux 9.0///redhat enterprise linux as 4中,都支持smbmount这一samba挂载命令,但是到了5.0就取消了。


解决办法(为转载):
Fedora core 5的smbclient 的RPM中已經沒有了smbmount這支程式了。事實上,smbmout就等於mount -t smbfs。所以沒有了也無所謂,只是在FC5 kernel 中也沒有將smbfs的support加入。所以,當打入
#mount -t smbfs -o username=xxx.password=xxx //hostname/dir /mnt/dir
mount: unknown filesystem type 'smbfs
就會出現上面的這行訊息
其實,是因為FC5現在改用 Common Internet File Systemcifs(cifs)取代了原有的smbfs,所以指令就必須改成
#mount -t cifs -o username=xxx.password=xxx //hostname/dir /mnt/dir
如果你還是習慣用smbmount,在/root/.bashrc 中加一行
alias smbmount='mount -t cifs' 即可

 


——————好像有问题——————
我是以root身份登陆的。所以打:
#mount -t cifs -o username=tom.passwd=tom //host/sharedocuments /mnt
可是需要我再次输密码。所以感觉还是应该这样:
#mount -t cifs -o username=tom%tom //host/sharedocuments /mnt

 

当然也可以用“ALT+F2”,然后输入:smb://对方ip    ###在桌面下...
PS:
网上邻居的中文目录的显示乱码的处理方法:
* 确认你的local,如果为:zh_CN.UTF-8 则: 在 /etc/samba/smb.conf 中的 [global] 段加上:
display charset = UTF-8
unix charset = UTF-8
dos charset = cp936
* 确认你的local,如果为:zh_CN.GB2312zh_CN.GBK 则: 在 /etc/samba/smb.conf 中的 [global] 段加上:
display charset = cp936
unix charset = cp936
dos charset = cp936
设置完毕后,需要注销一次。才可以看到中文的目录。
 

smbclient -L //192.168.1.9

smbclient //192.168.1.9/temp -U administrator

阅读(2350) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~