Linux 运行chroot comand时出错

Linux 运行chroot comand时出错,linux,shell,Linux,Shell,作为root用户,我要确保我的应用程序洞察权限由洞察用户而不是root拥有 但出现以下错误: chroot insights:insights /home/insights/* -R chroot: cannot change root directory to : no such file or directory centos 您使用了错误的命令来更改目录的所有权。请使用chown命令而不是chroot

作为root用户,我要确保我的应用程序洞察权限由洞察用户而不是root拥有

但出现以下错误:

chroot insights:insights /home/insights/* -R    
chroot: cannot change root directory to : no such file or directory centos

您使用了错误的命令来更改目录的所有权。请使用
chown
命令而不是
chroot