List crontab for a different user from within a perl script

Hi,

Is it possible for a user "A" to execute a perl script - that would read the crontab listings of another user "B"?? If so please explain how.

Thanks in advance.

sushiltanna
sushiltannaAsked:
Who is Participating?
 
jmcgOwnerCommented:
The crontabs are normally kept as files, often in a directory named "/var/cron/tabs" or "/var/spool/cron/crontabs". You'll find that  an unprivileged user will not be able to read the crontabs of other users or, possibly, even read the crontab directory.

Perhaps if you'll explain a little more about what you're attempting to accomplish, we can provide a solution.
0
 
sushiltannaAuthor Commented:
User "A" is neither root nor does he have any special rights.
0
 
TintinCommented:
The only way to acheive what you want is by writing a SUID perl script, or using a tool like sudo.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.