linux挂载windows共享目录

处理了一个在linux挂载windows共享目录的问题。
源windows2003,目标centos5.8。
按照经验使用如下命令进行挂载,但是报错了:
[root@servm /]# mount //192.168.1.203/kankan /opt/diy_temp -o username=administrator
mount: block device //192.168.1.203/kankan is write-protected, mounting read-only
mount: cannot mount block device //192.168.1.203/kankan read-only
查看系统日志发现如下提示:
Jan 31 10:02:44 servm kernel: Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
Jan 31 10:02:44 servm kernel:  CIFS VFS: Send error in SessSetup = -13
Jan 31 10:02:44 servm kernel:  CIFS VFS: cifs_mount failed w/return code = -13
Jan 31 10:02:44 servm kernel: Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
Jan 31 10:02:44 servm kernel:  CIFS VFS: Send error in SessSetup = -13
Jan 31 10:02:44 servm kernel:  CIFS VFS: cifs_mount failed w/return code = -13
经过检查发现需要按照cifs-utils,问题得到解决,另外附上在安装过程中需要用到的依赖:
yum -y install krb5-devel gcc libtalloc-devel
-The End-

你可能感兴趣的:(linux挂载windows共享目录)