我的用户uid是1000,windows 10有ntfs,从linux执行:
mount -t cifs //win-ip/share1 /home/user/remote-dir -o,username=XXX,password=XXX,uid=1000,gid=1000
不幸的是,如果我创建一个隐藏文件,我可以在远程dir上写入、读取和执行文件:
touch /home/user/remote-dir/.hidden1
在linux上工作,但在windows上我看到了
.hidden1
以及:
ls -la
-rwxr-xr-x 1 user user 0 Mar 6 14:2
我正在尝试将一个文件从我的(主机)加载到我的Linux (容器)。当我挂载一个具有标准扩展名的文件时,一切看起来都很好。但是,当我试图挂载一个点文件的文件时,它不起作用。
//This does not work
type=bind,source=${env:USERPROFILE}\\.sample,target=/home/.sample,consistency=cached
// This does work
type=bind,source=${env:USERPROFILE}\\sample.txt,target=/home/sample.txt,consistency=cache