[root@server ~]#smbmount //10.0.0.163/netmeeting /mnt/d1
-bash: smbmount: command not found
[root@server ~]#which smbmount
/usr/bin/which: no smbmount in
(/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/
usr/bin:/root/bin)
以上是两条错误的信息,可是我使用mount.cifs //10.0.0.163/netmeeting /mnt –o
username=redhat%redhat可以正常使用.
兄弟啊,这个问题我困绕我了两天,好不容易找到解决方法了,拿出来分享下
我知道至少从Fedora5开始弃用smbmount,该命令可以写成:
#mount -t cifs -o username=xxx.password=xxx //hostname/dir /mnt/dir
或#mount -t cifs //192.168.0.1/share /mnt/net -o username=redhat%redhat
小技巧:
如果你还是习惯用smbmount,在/root/.bashrc 中加一行程序代码
alias smbmount='mount -t cifs'
呵呵,明白了吧~

没有评论:
发表评论