求助!!! ubuntu18挂载问题
linux吧
全部回复
仅看楼主
level 2
我想赋予文件777权限结果后面不知道该怎么做了
2019年12月19日 09点12分 1
level 2
yezishu@wumingxiaodao:~$ sudo -i
[sudo] password for yezishu:
root@wumingxiaodao:~# mkdir /www/wwwroot/wangpan
root@wumingxiaodao:~# sudo vmhgfs-fuse .host:/ /www/wwwroot/wangpan -o nonempty -o allow_other -o uid=1000
root@wumingxiaodao:~#cd /www/wwwroot/wangpan
root@wumingxiaodao:/www/wwwroot/wangpan# cd /www/wwwroot/wangpan/Nextcloud
root@wumingxiaodao:/www/wwwroot/wangpan/Nextcloud# sudo chmod -R 777
chmod: missing operand after ‘777’
Try 'chmod --help' for more information.
root@wumingxiaodao:/www/wwwroot/wangpan/Nextcloud# chmod --help
Usage: chmod [OPTION]... MODE[,MODE]... FILE...
or: chmod [OPTION]... OCTAL-MODE FILE...
or: chmod [OPTION]... --reference=RFILE FILE...
Change the mode of each FILE to MODE.
With --reference, change the mode of each FILE to that of RFILE.
2019年12月19日 09点12分 2
level 2
-c, --changes like verbose but report only when a change is made
-f, --silent, --quiet suppress most error messages
-v, --verbose output a diagnostic for every file processed
--no-preserve-root do not treat '/' specially (the default)
--preserve-root fail to operate recursively on '/'
--reference=RFILE use RFILE's mode instead of MODE values
-R, --recursive change files and directories recursively
--help display this help and exit
--version output version information and exit
2019年12月19日 09点12分 3
level 2
这是操作结果
2019年12月19日 09点12分 4
到后来就不知道该怎么弄了,求助!!关于挂载的问题我搞了好久了[泪],现在还是搞不定
2019年12月19日 09点12分
level 2
已经是root了就不用sudo了 当然这个不是重点
chmod -R 777 [目标目录或者文件]
来个例子 比如要变更当前所在目录下面的目录XXX 和这个目录下的所有文件 并且查看过程 可以用
chmod -vR 777 ./XXX
chmod -vR 777 ./XXX/*
2019年12月19日 12点12分 5
1