Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
sudo chroot /tmp/jail /bin/echo 'test' > /home/someone/.bash_history
错误日志:-bash: /home/someone/.bash_history: Permission denied
您没有使用 sudo 运行整个命令。尝试
sudo sh -c "chroot /tmp/jail /bin/echo 'test' > /home/someone/.bash_history"
重定向后的部分不是以 root 身份运行的
更多示例
如何使用 sudo 将输出重定向到我无权写入的位置?
Hi i am using YUI data table
initially i am loading table with no records(empty), i am taking the input from user and making an AJAX call which is returning J