access windows share with smbclient and mount with cifs
来源:互联网 发布:网络教育公共课考试 编辑:程序博客网 时间:2024/05/23 18:45
suppose my windows server is YJ104. and hthe work group is "WORKGROUP", and I have created a user name called "bq".
you'd first share a folder and enables permission for YJ104\bq;,
to visit hte files from smbclient, you can do is like this:
smbclient //YJ104/share -Ubq -WWORKGROU
and you can ls on files ..
when this is ready, you can mount the files, here is what you do:
bq@ubuntu:~$ sudo mount -t cifs -o username=bq,workgroup=workgroup,password=password,uid=bq,gid=sudo,file_mode=0640,dir_mode=0750 //YJ104/share /mnt/share
you may need to first make dir /mnt/share
mkdir -p /mnt/share
you can check on the gid, uid of user bq by :
id boqwang
P.S, you may want to add the following line to the /etc/hosts file, so it knows the YJ104
bq@ubuntu:~$ cat /etc/hosts127.0.0.1localhost127.0.1.1ubuntu192.168.61.1YJ104
Permission denied after successfully mounting a directory with smbfs : http://www.jroller.com/agileanswers/entry/permission_denied_after_successfully_mounting
- access windows share with smbclient and mount with cifs
- Linux mount CIFS Windows Share
- Linux mount CIFS Windows Share
- Mount Windows/CIFS Share on Linux Mint
- Mount Linux CIFS share
- Mount.cifs cannot allocate memory mounting Windows share
- Mount Windows (CIFS) LAN Shares and Overcome Libreoffice/.doc Issues
- How to mount Windows share on Red Hat Enterprise Linux system using CIFS
- More with smbclient, smbget, enum4linux
- linux mount nfs and cifs
- Virtualbox mouse move in and out and file share with windows
- How to mount partition with ntfs file system and read write access
- How to mount partition with ntfs file system and read write access
- vmware linux samba share with windows
- windows share files with linux via vitrualbox
- linux挂载windows的目录。实现共享。mount -t cifs -o username=xx //192.168.1.5/share /挂的目录
- share all with you
- Plot with ggplot2, interact, collaborate, and share online
- 模型设计与实践---(四)异步选择IO(AnsySelect IO)
- Include,require,include_once,require_once的区别
- [HTML5-SVG]SVG是什么?SVG有什么用途?
- CvMat学习
- 内存管理(一)java的内存泄露预防
- access windows share with smbclient and mount with cifs
- Cassandra 为集群中的节点手动分配token
- web开发平台的演变
- HDOJ1285 确定比赛名次(拓扑排序)
- 全局变量
- MYSQL 中文乱码 字符集utf8 下插入中文
- float 转型后出现的问题
- 文件
- 城镇吸引力评价