• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 249
  • Last Modified:

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
0
sushiltanna
Asked:
sushiltanna
2 Solutions
 
sushiltannaAuthor Commented:
User "A" is neither root nor does he have any special rights.
0
 
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
 
TintinCommented:
The only way to acheive what you want is by writing a SUID perl script, or using a tool like sudo.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now