|
|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Opps just in case. I am refering to the permissions related to the script do a "chmod 555 script" and then try it again -- David Blomberg APS, CCNA, LCP, Linux+, RHCE, Server+ Nihon Libertec dblomber@libertec.com
--- Begin Message ---
- To: security-discuss@xxxxxxxxxxxxxxxxx
- Subject: RE: crontab and cron
- From: David Blomberg <dblomber@xxxxxxxxxxxx>
- Date: 05 Dec 2002 17:18:48 +0900
- Delivered-to: security-discuss@juggernaut.linuxsecurity.com
- In-reply-to: <E023B997F74B1E46BB8367A9C548BCFC639DD5@aunty.tecnomen.fi>
- Organization: Nihon Libertec
- References: <E023B997F74B1E46BB8367A9C548BCFC639DD5@aunty.tecnomen.fi>
- Reply-to: security-discuss@xxxxxxxxxxxxxxxxx
- Sender: security-discuss-bounce@xxxxxxxxxxxxxxxxx
This happens a lot if the shell script is not made executable. -- David Blomberg APS, CCNA, LCP, Linux+, RHCE, Server+ Nihon Libertec dblomber@libertec.com--- Begin Message ------ End Message ---
- To: "'security-discuss@xxxxxxxxxxxxxxxxx'" <security-discuss@xxxxxxxxxxxxxxxxx>
- Subject: RE: crontab and cron
- From: Andrew Weaver <Andrew.Weaver@xxxxxxxxxxx>
- Date: Thu, 5 Dec 2002 10:09:35 +0200
- Delivered-to: security-discuss@juggernaut.linuxsecurity.com
- Reply-to: security-discuss@xxxxxxxxxxxxxxxxx
- Sender: security-discuss-bounce@xxxxxxxxxxxxxxxxx
Looks like you are trying to execute a command called "root". /bin/sh is the source of the error message. On Wednesday, December 04, 2002 4:22 PM, Harper, John P [SMTP:john.harper@eds.com] wrote: > I have a small problem setting up cron jobs for root on a RedHat Linux > Server. > Does anyone know where cron gets its X-Cron-Env: <variable> from? > > When cron executes the script, the following gets mailed to root on the > server. > *********************************************************************** > m: root@localhost.localdomain (Cron Daemon) > To: root@localhost.localdomain > Subject: Cron <root@localhost> root /etc/httpd/conf/nmbd.chk > X-Cron-Env: <SHELL=/bin/sh> > X-Cron-Env: <HOME=/root> > X-Cron-Env: <PATH=/usr/bin:/bin> > X-Cron-Env: <LOGNAME=root> > > /bin/sh: root: command not found > ************************************************************************ > No error messages appear in system logs. > The script contains #!/bin/bash as the first line. > sh is a link to the bash shell in the /bin directory. > > I have done an extensive search on Red Hat's site for any information on > this topic and come up dry. > The man pages do not shed much light in to this either. > I have never run across this before when setting up a cron or crontab job > request. > > Sincerely, > > John P. Harper CCNA / MCP > Security Administrator > EDS Department of Education Account > ------------------------------------------------------------------------ > To unsubscribe email security-discuss-request@linuxsecurity.com > with "unsubscribe" in the subject of the message. ------------------------------------------------------------------------ To unsubscribe email security-discuss-request@linuxsecurity.com with "unsubscribe" in the subject of the message.--- End Message ---
[Home] [Fedora Announce] [Linux Crypto] [Kernel] [Netfilter] [Video for Linux] [Bugtraq] [USB] [Network Security] [Fedora Security]
![]() |