小编sef*_*oub的帖子

错误:用户名错误;读取 /etc/crontab 时

我想将文件从服务器复制到已安装在服务器上的 NFS。

为此,我配置了一个 crontab 将这些文件复制到 NFS。通过手动输入命令,文件已成功复制,但通过使用 crontab 自动化主题,它总是告诉我 Error: bad username; while reading /etc/crontab

这是 crontab 配置:

# m h dom mon dow user  command

17 *    * * *   root    cd / && run-parts --report /etc/cron.hourly

25 6    * * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )

47 6    * * 7   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )

52 6    1 * *   root    test …
Run Code Online (Sandbox Code Playgroud)

nfs cron rsync

4
推荐指数
1
解决办法
1万
查看次数

标签 统计

cron ×1

nfs ×1

rsync ×1