Re: Why am I getting these messages?
I think this is caused by the user not having read permission for the
parent of the current directory. It looks like this is happening when
running cron.daily. I don't know if when one runs cron jobs, whether the
current directory is the home directory of the user (/root probably in
this case), or whether it's the directory of the script which is being
run (/etc/cron.daily in this case) (anybody know which is the case?).
Anyway, in case of the former, you probably need to do 'cd / ; chmod +r',
and in the case of the latter, 'cd /etc ; chmod +r'.
Gerry
gerry@blue.intele.net
On Mon, 12 Feb 1996, Bill Hogan wrote:
> >From root Mon Feb 12 06:44:09 1996
> Return-Path: <root>
> Received: by bedlam.rahul.net
> id m0tlzS6-0003mCC
> (Debian /\oo/\ Smail3.1.29.1 #29.33); Mon, 12 Feb 96 06:42 PST
> Message-Id: <m0tlzS6-0003mCC@bedlam.rahul.net>
> Date: Mon, 12 Feb 96 06:42 PST
> From: root (Cron Daemon)
> To: root
> Subject: Cron <root@bedlam> run-parts /etc/cron.daily
> X-Cron-Env: <SHELL=/bin/sh>
> X-Cron-Env: <PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin>
> X-Cron-Env: <HOME=/root>
> X-Cron-Env: <LOGNAME=root>
> Status: RO
>
> shell-init: could not get current directory: getwd: cannot access parent directories
> shell-init: could not get current directory: getwd: cannot access parent directories
> job-working-directory: could not get current directory: getwd: cannot access parent directories
> job-working-directory: could not get current directory: getwd: cannot access parent directories
> job-working-directory: could not get current directory: getwd: cannot access parent directories
> job-working-directory: could not get current directory: getwd: cannot access parent directories
> job-working-directory: could not get current directory: getwd: cannot access parent directories
> job-working-directory: could not get current directory: getwd: cannot access parent directories
> job-working-directory: could not get current directory: getwd: cannot access parent directories
> cd_links: could not get current directory: getwd: cannot access parent directories
>
>
Reply to: