How to provide read access to root crontab?

Hi,

Is there any safe method to provide read access to root's crontab to another user? Just read no other permissions.

You can setup the following privileges. do a chmod on the first three directories as 755.
Then do a chmod on /var/spool/cron/root as 644 and you will have what you want.

$ ls -ld /var /var/spool /var/spool/cron /var/spool/cron/root
drwxr-xr-x. 19 root root 267 Mar  2 05:59 /var
drwxr-xr-x.  9 root root  98 Oct 20 12:56 /var/spool
drwxr-xr-x.  2 root root  34 Mar  2 09:43 /var/spool/cron
-rw-r---r--.  1 root root  33 Mar  2 09:43 /var/spool/cron/root
1 Like