我用ssh2_connect连接到远程服务器。 在我的安全日志中,我得到了 Feb 22 11:41:57 centos sshd[3243]: Accepted publickey for subscr from 83.166.241.41 port 53306 ssh2 Feb 22 11:41:57 centos sshd[3243]: pam_unix(sshd:session): session opened for user subscr by (uid=0) 所有的shell命令工作,但我试着“crontab -e”我的PHP脚本挂起 在crontab日志中我看到 Feb 22 11:41:57 centos crontab[3248]: (subscr) BEGIN EDIT (subscr) 我试过“crontab -r”命令,它的工作原理。 在crontab日志中我看到 Feb 22 11:41:37 centos crontab[3205]: (subscr) DELETE (subscr) 所以我猜GUESS的所有权限都没问题。 我的问题是为什么PHP脚本只有当我运行时挂起 ssh2_exec($conn, […]
如何重新启动stunnel4并抑制输出,除非有错误? 我尝试使用-quiet标志,但根据仅NT/2000/XP only的手册页 $ /etc/init.d/stunnel4 restart -quiet /etc/stunnel/-quiet.conf does not exist. 我也尝试使用输出日志,并将configuration文件中的debugging从5 (默认,通知)降低到4 (警告)。 output = /var/log/stunnel4/stunnel.log debug = 4 [–truncated–] 无论我尝试什么,总是打印状态: $ /etc/init.d/stunnel4 restart Restarting SSL tunnels: [stopped: /etc/stunnel/attnam.conf] [Started: /etc/stunnel/attnam.conf] stunnel.
更新 :cronstring现在在结构上是正确的。 我有我的crontabconfiguration的mailto:[email protected],[email protected]选项 我现在有这个计划: * / 5 * * * * root / bin / bash / scripts / db -bkup-test&> / tmp / myDbBack.log; mailx -s“夜间testing数据库备份正在成功运行”user @ domain.com,user1 @ domain.com * / 5 * * * * root / bin / bash / scripts / db -bkup-test&> / tmp / myDbBack.log; mail -s“夜间testing数据库备份正在成功运行”user @ […]
我configuration了我的Centos 7的电子邮件子系统,以便将电子邮件发送到外部世界。 从那时起,我开始从crond进程每分钟收到大约10封电子邮件。 这对我来说是没有用的,并希望crond不要发送任何邮件。 我试图设置 MAILTO="" 在/ etc / crontab和/etc/crontab.d(在crontab相关文件中没有更多的MAILTO = root),但电子邮件仍然来临。 我重新启动crond服务,后来我重新启动整个系统。 目前为止没有任何帮助
我使用的crontab与mysqldump命令一起在2天内我的数据库备份一次。我需要从服务器下载这些文件到我的电脑..我可以使用一些命令自动执行此下载过程??请帮助我..谢谢提前.. 我的电脑没有使用Linux ..
我build立了一个cron作业,每隔5分钟运行一次,但是,我从cron守护进程收到以下错误消息: Site error: the file <b>/home/domain.com/public_html/pipe/pop.php</b> requires the ionCube PHP Loader ioncube_loader_lin_5.2.so to be installed by the site administrator. 我的服务器上启用了ionCube,这对我来说没什么意义。 我可以看到它在phpinfo()输出,以及我已经安装的应用程序,需要ionCube工作,并顺利进行。 这是cron的工作: php -q /home/domain.com/public_html/pipe/pop.php 我正在使用Debian 5 x86-64
*/5 * * * * root ./temp.sh 以上必须以root身份运行,如何使其适用于所有用户?
我只是想知道,是使用一个cron作业是可读的安全风险? 在这种情况下,脚本是chmod 755,并且该组基本上是机器上的一组系统pipe理员。 权限似乎很好,但我只是想知道是否将这个脚本保存在一个组或世界可读的地方是一个坏主意,因为它是一个备份脚本,需要以root身份运行。 谢谢!
我正在尝试自动执行通过ssh在远程机器上执行命令的脚本。 我有使用ssh-agent的机器之间的公钥authentication设置。 脚本从命令提示符执行时运行正常。 我怀疑我的问题是,由于它的极简主义环境,cron没有启动ssh-agent。 下面是我向ssh添加-v标志的输出: debug1: Authentications that can continue: publickey,gssapi-with-mic,password debug1: Next authentication method: gssapi-with-mic debug1: Authentications that can continue: publickey,gssapi-with-mic,password debug1: Authentications that can continue: publickey,gssapi-with-mic,password debug1: Next authentication method: publickey debug1: Offering public key: /home/<user>/.ssh/id_rsa debug1: Server accepts key: pkalg ssh-rsa blen 149 debug1: PEM_read_PrivateKey failed debug1: read PEM private key done: […]
有人知道这是什么意思? 在一个用户的收件箱中获取这些每一分钟之一: From: Cron Daemon <[email protected]> Subject: Cron <joe@mail> /tmp/.d/update >/dev/null 2>&1 To: [email protected] Received: from murder ([unix socket]) by mail.domain.com (Cyrus v2.2.12-OS X 10.3) with LMTPA; Tue, 04 May 2010 10:35:00 -0700 shell-init: could not get current directory: getcwd: cannot access parent directories: Permission denied job-working-directory: could not get current directory: getcwd: cannot access […]