我想在 CentOS 6 启动时运行一个 bash 脚本。我在/etc/init.d/目录中添加了脚本,但所有这些脚本都是由 root 运行的。我想为任何用户运行脚本。
/etc/init.d/
linux bash cron
bash ×1
cron ×1
linux ×1