Technical article 116950

OpenServer 5, I get a mail message from cron stating: "can't set login UID".

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5OpenServer 5.0.6

Written · Last revised

Problem

After submitting a cron, or an "at" job, I get email with the message "Cron: can't set login UID. Your commands will not be executed."

Cause

If the cron daemon is killed and restarted manually, it will acquire that user's LUID. Any jobs submitted will then give the above error. Cron cannot have a LUID set if it is to function properly.

This problem is only known to occur when the server is set to "High"
security mode.  The way to show that is to run:
/tcb/bin/secdefs -v
and check that:
SECLUID=1
is set in /etc/conf/cf.d/stune

Solution

You will need to reboot the machine so that the cron daemon can be started up by init.

Alternately, you can use the commands:
/etc/rc2.d/P75cron stop
/etc/rc2.d/P75cron start

Then, use the "sd" command to start the cron daemon without rebooting and check that the cron is running with:

ps -ef | grep cron

Also check the TCB database with the command:

/tcb/bin/authck -av
and fix any problems addressed there.

See also

ta105076, "table_grow - exec data table page limit of 25 pages (MAXEXECARGS) exceeded. "

ta106462, "I get the mail message from cron "can't set login UID"."

authck(ADM); cron(C); sd(ADM)
https://ftp.scoexpert.com/openserver5/README.OSR5.Supplements
http://support.ca.sco.com/cgi-bin/ssl_getmanpage?setluid+S+OS5+setluid

From the Xinuos technical article database, record 116950. Reproduced with permission. The original is at www.sco.com/ta/116950, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.