>Are you sure its a crontab problem and not just a path problem?
No idea.
>What I suggest you try is as root type: which crontab
[root@ensim skel]# which crontab
/usr/bin/crontab
[root@ensim skel]#
>it should give you the full path to the crontab binary, then as the user
type "path-to-crontab" and see if that makes any difference.
bash-2.04$ path-to-crontab
bash: path-to-crontab: command not found
bash-2.04$
>If it does, perhaps the users need the path to their crontab in their PATH,
to do this to existing users, edit ~/.bash_profile (~ means their home
directory) and put the path in "PATH=".
Here is the contents of the user profile after I entered the path.
Is this correct ?
-----------------------------------
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin:/usr/bin:/usr/sbin
BASH_ENV=$HOME/.bashrc
USERNAME=""
export USERNAME BASH_ENV PATH
-------------------------------------
I opened a new session, and typed which crontab
with the same problem.
>To do this for all new users created, place the same in
/etc/skel/.bash_profile
I looked at the file in this directory, and it does not
have the path to crontab (i.e. /usr/bin) in the .bash_profile.
I will add it and create a new account, and see what happens.
Louis.
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug