On 14/07/2015 12:25 AM, Casper H.S. Dik wrote:
[SNIP]
>
> We ship the system with root as a role and still ship it with
> crontabs for root.
>
> Let's wait until the OP responds what didn't work for him,
>
Double checked /etc/cron.d/cron.deny:
$ cat /etc/cron.d/cron.deny
daemon
bin
nuucp
$
There is no /etc/cron.d/cron.allow
$ pfexec crontab -e root
Warning - Invalid account: 'root' not allowed to execute cronjobs
crontab: The audit context for your shell has not been set.
$
$ sudo crontab -e root
Warning - Invalid account: 'root' not allowed to execute cronjobs
[It then opens the crontab file, edits it, and saves it, as expected]
$
Examining /var/cron/log and olog:
! *** cron started *** pid = 1097 Sat Jun 27 18:04:16 2015
> CMD: /usr/lib/update-manager/update-refresh.sh
> root 2579 c Sat Jun 27 18:30:00 2015
! user (root) password has expired Sat Jun 27 18:30:00 2015
...
[NOTE that other users cronjobs run.]
I also put a simple "df -h" in, just in case it was something weird.
I changed nothing that I can think of that would have stopped root
cronjobs from working. Although I was fiddling, I don't recall hitting
anything cron-ish.
I installed the x64 system from a live DVD.
Apart from root cronjobs, everything works! As in, "everything that I
have tried" works. OpenCSW apache/php/mysql and others, Studio 12.4
Compiler, postfix built from source, leafnode, all the junk I lobbed
into it from my self-built /opt/local tree. Nothing points at cron!
For completeness:
$ svccfg -s cron listprop
usr dependency
usr/entities fmri
svc:/system/filesystem/local
usr/grouping astring require_all
usr/restart_on astring none
usr/type astring service
ns dependency
ns/entities fmri
svc:/milestone/name-services
ns/grouping astring require_all
ns/restart_on astring none
ns/type astring service
manifestfiles framework
manifestfiles/etc_svc_profile_generic_xml astring
/etc/svc/profile/generic.xml
manifestfiles/lib_svc_manifest_system_cron_xml astring
/lib/svc/manifest/system/cron.xml
general framework
general/action_authorization astring
solaris.smf.manage.cron
general/entity_stability astring Unstable
general/single_instance boolean true
dependents framework
dependents/cron_multi-user fmri
svc:/milestone/multi-user
startd framework
startd/ignore_error astring core,signal
start method
start/exec astring
/lib/svc/method/svc-cron
start/group astring root
start/timeout_seconds count 60
start/type astring method
start/use_profile boolean false
start/user astring root
stop method
stop/exec astring :kill
stop/timeout_seconds count 60
stop/type astring method
refresh method
refresh/exec astring ":kill -THAW"
refresh/timeout_seconds count 60
refresh/type astring method
tm_common_name template
tm_common_name/C ustring "clock daemon
(cron)"
tm_man_cron1M template
tm_man_cron1M/manpath astring /usr/share/man
tm_man_cron1M/section astring 1M
tm_man_cron1M/title astring cron
tm_man_crontab1 template
tm_man_crontab1/manpath astring /usr/share/man
tm_man_crontab1/section astring 1
tm_man_crontab1/title astring crontab
And:
$ ps -ef
UID PID PPID C STIME TTY TIME CMD
...
root 25663 1 0 Jul 05 ? 0:05 /usr/sbin/cron
...