rsync使用--password-file无法读取密钥文件,需手动输入密码?
rsync
可以使用 --password-file
选项指定密钥文件,密钥文件中简单存放 rsync
密码;在第一次使用密钥文件的时候经常遇到文件权限相关问题;这里总结一下,我遇到的问题。
问题描述
在开发环境下,手动执行 python ccmcx_tdw_data_sync.py
,执行前还确保了 rsync.secret
具体读写权限,chmod u+rw rsync.secret
,执行正常;后面将脚本加入 crontab
,
运行报错:password file must be owned by root when running as root
简单的处理,让所有用户都有权限读写:chmod a+rw rsync.secret
;运行报错:password file must not be other-accessible
结论
password file must be owned by root when running as root continuing without password file Password:
上一篇:关于windows server 2012 DC 环境 重启后蓝屏代码:0xc00002e2的问题
栏 目:Windows
下一篇:Windows Server服务器上配置FileZilla后,FTP连接不上?
本文标题:rsync使用--password-file无法读取密钥文件,需手动输入密码?
本文地址:https://www.idc91.com/fuwuqizl/5071.html
您可能感兴趣的文章
- 06-17windows server时间同步设置的方法步骤
- 06-17Windows上安装WSL+Ubuntu来运行Linux环境
- 06-17Windows服务器禁用ping功能的操作指南
- 06-17IIS服务器禁止某个IP或IP地址范围访问网站的方法
- 06-17IIS中配置HTTPS证书的实现步骤
- 06-17Windows Server使用IIS作为SMTP服务器的实现
- 06-17IIS部署Linux环境下的cer证书步骤
- 06-17Windows 2012 R2自建安装IIS 8.5的实现步骤
- 06-17windows server 防火墙添加出入站规则方法小结
- 06-17Windows Server 2016 使用IIS配置FTP


阅读排行
推荐教程
- 05-27Windows Server 2012 没有远程桌面授权服务器可以提供许可证,远程会话被中
- 06-12windows2008+iis7环境SSL部署https证书
- 11-07windows server2016安装oracle 11g的图文教程
- 06-12windows2003系统如何部署SSL证书站点https访问
- 05-27Win10下配置IIS10并支持调试ASP程序的步骤
- 05-27Windows 2008任务计划执行bat脚本失败返回0x1的解决方法
- 11-07windows server 2019 无法安装AMD Radeon RX 6600 XT
- 11-07Windows server 2012 NTP时间同步的实现
- 11-07Windows Server 2022 超融合部署(图文教程)
- 05-27IIS 完全重装操作步骤