为什么设置了文件夹为root权限后还是可以打开?
Tofloor
poster avatar
leonardo520
deepin
2018-01-07 23:29
Author
设置了文件夹为root权限后还是可以打开并且查看文件夹里的文件,只是无法编辑罢了。请问如何设置让非root用户无法打开这个文件夹?
Reply Favorite View the author
All Replies
avatar
duanyao
deepin
2018-01-07 23:44
#1
取消其他用户的x权限。
Reply View the author
avatar
leonardo520
deepin
2018-01-08 02:47
#2
https://bbs.deepin.org/post/151344
取消其他用户的x权限。

文件夹本身就没有x权限,rw-r-r 这个是文件夹原始权限
Reply View the author
avatar
duanyao
deepin
2018-01-08 02:54
#3
https://bbs.deepin.org/post/151344
文件夹本身就没有x权限,rw-r-r 这个是文件夹原始权限

但是有r权限,也得去掉。
Reply View the author
avatar
177******36
deepin
2018-01-08 03:44
#4
反正不想让看文件夹里面的内容,是要取消X而不是R
Reply View the author
avatar
leonardo520
deepin
2018-01-08 04:03
#5
https://bbs.deepin.org/post/151344
反正不想让看文件夹里面的内容,是要取消X而不是R

问题是新建的文件夹权限是rw-r-r,本身就没有X啊?
Reply View the author
avatar
iminto
deepin
2018-01-08 05:06
#6
chmod 700 文件夹

不就好了
Reply View the author
avatar
jlice
deepin
2018-01-08 05:28
#7

Reply View the author