Subject: | Cannot read other user's crontabs as super-user |
Date: | Fri, 25 Jan 2008 17:55:07 -0500 |
To: | bug-Config-Crontab [...] rt.cpan.org |
From: | Miranda Ilechukwu <miranda [...] oanda.com> |
When running as "root", I have tried to read other users' crontabs using
the documented methods but, the read() always fails. There is no error
string available from error() either.
I have tried:
my $crontab = new Config::Crontab( -owner => 'someuser' );
$crontab->read;
AND
my $crontab = new Config::Crontab();
$crontab->owner('someuser');
$crontab->read;
AND
my $crontab = new Config::Crontab();
$crontab->read( -owner => 'someuser' );
In all cases, 'someuser' had a non-empty crontab but, the read() always
failed. From the command line, I could execute "crontab -l someuser"
successfully and see the crontab.
My environment (uname -a):
SunOS testing 5.10 Generic_127111-06 sun4u sparc SUNW,Sun-Fire-V240 Solaris
Perl v5.8.8 built for sun4-solaris
Config::Crontab v1.21
Cheers,
Miranda Ilechukwu
miranda@oanda.com