在linux挂载windows共享Mount CIFS
来源:互联网 发布:未注册网络什么意思 编辑:程序博客网 时间:2024/05/22 14:12
mount -t cifs -o username="共享用户",password="密码" //ip/sharing_folder /mountpoint
刚知道还可以这样。。。。
都不用samba....
[转] 如何在Windows和Linux中共享文件?samba也许是个不错的选择。但是我用的CentOS5中若用smbfs就是一个“Wrong fs type”。仔细查找了相关资料,找出几个解决方法:
1 mount -o username=your_name,password=your_password //server/share_folder /mount_point
2 mount -t cifs username=your_name,password=your_password //server/share_folder /mount_point
这两种方法本质都一样,但要注意your_name用户必须对share_folder拥有完全操作的权限,当然若要只读甚至随便乱写个用户名密码都可 以。
3 写到/etc/fstab文件中,在该文件最后添加一行:
//server/share_folder /mount_point cifs username,password,rw
这样还是有个缺点,即用户名和密码都以明文的方式暴露了,还可以这样:
4 编辑/etc/fstab,按如下格式添加:
//server/share_folder /mount_point cifs credential=/root/credential
而/root/credential中内容如下:
useername=your_name
password=your_password
但是还有个问题,普通用户是无权使用mount的,
5 使用sudo
6 对mount.cifs添加suid。
刚知道还可以这样。。。。
都不用samba....
[转] 如何在Windows和Linux中共享文件?samba也许是个不错的选择。但是我用的CentOS5中若用smbfs就是一个“Wrong fs type”。仔细查找了相关资料,找出几个解决方法:
1 mount -o username=your_name,password=your_password //server/share_folder /mount_point
2 mount -t cifs username=your_name,password=your_password //server/share_folder /mount_point
这两种方法本质都一样,但要注意your_name用户必须对share_folder拥有完全操作的权限,当然若要只读甚至随便乱写个用户名密码都可 以。
3 写到/etc/fstab文件中,在该文件最后添加一行:
//server/share_folder /mount_point cifs username,password,rw
这样还是有个缺点,即用户名和密码都以明文的方式暴露了,还可以这样:
4 编辑/etc/fstab,按如下格式添加:
//server/share_folder /mount_point cifs credential=/root/credential
而/root/credential中内容如下:
useername=your_name
password=your_password
但是还有个问题,普通用户是无权使用mount的,
5 使用sudo
6 对mount.cifs添加suid。
0 0
- 在linux挂载windows共享Mount CIFS
- Linux mount CIFS Windows Share
- Linux mount CIFS Windows Share
- linux使用cifs方式mount(挂载)Windows7共享文件
- linux挂载windows共享文件夹(cifs)
- CIFS挂载Windows共享
- linux挂载windows的目录。实现共享。mount -t cifs -o username=xx //192.168.1.5/share /挂的目录
- linux中使用cifs挂载windows 7的共享文件提示mount error(5): Input/output error
- linux中使用cifs挂载windows 7的共享文件提示mount error(5): Input/output error
- Mount Windows/CIFS Share on Linux Mint
- Linux访问Windows共享文件夹,关于mount cifs的一个问题
- Linux访问Windows共享文件夹,关于mount cifs的一个问题
- linux mount windows 共享
- Mount Linux CIFS share
- Linux使用mount挂载Windows共享文件夹
- Linux mount windows共享目录
- openfiler作为文件服务器,windows、linux挂载NFS实现共享,以及windows、linux实现SMB/CIFS
- linux下 mount cifs分区
- requirejs 简介
- TCP协议分析
- htop 内存使用率计算
- 设计模式之6大原则(1)-单一职责原则
- Asp.Net Jquery ajax异步请求
- 在linux挂载windows共享Mount CIFS
- 【oracle教程】Starting with Oracle Warehouse Builder 11g Release 1
- Eclipse Java EE + Tomcat 搭建J2EE开发环境
- myeclipse配置hadoop开发环境
- Redis 关键 点
- JAVA test_windowClosing
- VS2012编译boost
- ubuntu怎么找~/.文件
- 重新配置Oracle企业管理工具 Orcale Enterprise Manager (OEM)