[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Very Strange Script
On Mon, 16 Nov 1998, Ben Nes Michael wrote:
> You where right I got email and i think its something with the cron shell but
> im not sure.
The cron shell is fine, your script setup sux.
> Its still don't explain why its not working from the 1 of November (I didn't
> upgrade anything).
>
> Some points
>
> All the script is full path names.
> The scripts have the header: #!/bin/tcsh -f
> The script work perfectly when i ran it my self.
> ssh-agent and ssh-add work ok (under cron)
> ssh is working fine too (under cron)
> scp is not working and generate the next message (under cron)
>
> Subject: Cron <root@rs> /usr/local/scripts/now_usage.csh
> X-Cron-Env: <SHELL=/bin/sh>
> X-Cron-Env: <HOME=/root>
> X-Cron-Env: <PATH=/usr/bin:/bin>
uh-uh. FIX THE PATH IN THE SCRIPT. This is a normal mortal's path, not
root's. Commands run other commands and must be able to see them. I
understand that before November you had sbin in the path given in
/etc/profile ;( Do you still run that ISP or are the hackers who cracked
your security running it for you for free ? ;)
Also, if you use public temps, do you use a private umask in your script,
yes ?
> X-Cron-Env: <LOGNAME=root>
> Status: O
>
> detail-11
> SSH_AUTH_SOCK=/tmp/ssh-root/agent-socket-23019: Command not found.
> export: Command not found.
Guess why not
> SSH_AGENT_PID=23020: Command not found.
> export: Command not found.
> Agent pid 23020
> Need passphrase for /root/.ssh/identity (root@rs.canaan.co.il).
> Enter passphrase:
> Could not open a connection to your authentication agent.
> You have no controlling tty and no DISPLAY. Cannot read passphrase.
> You have no controlling tty and no DISPLAY. Cannot read passphrase.
> lost connection
Peter