用root身份从/搜索属于alex文件只有很少记录,用alex身份从/搜的话则有许多记录,命令如下
find / -user alex -print
为什么这样子?是因为root对某些属于alex的文件夹没有读和执行权限吗?我用root怎样才能得到和用alex一样的搜索结果呢
PHPz2017-04-17 15:43:51
'-user alex' means "file is owned by user alex"
find / -user alex -print
The output is a file owned by alex, which is of course different from root.