what user executes init on boot?

I have a command in init that trys to start a daemon and open a log, but a get an error error that the file access permissions do not allow the specified action. My permissions on the log file are:

-rw-r--r--    1 root     system         4434 Mar 22 15:13 dsmerror.log

The logfile is written to by the main application during processing, but on bootup the daemon fails to open.

So my question is on bootup is init run by the root user?

The program init definitely runs as root.

Where exactly is this log located? Is the filesystem mounted at the time?
Please post the line from /etc/inittab .
... and if you are not starting the daemon from init please post how you are starting the daemon.

Ps. If you get an error message, please always post it verbatim. Please also mention the version of AIX.

It turns out that the log's location needed to be explicitly defined in a config file when starting the daemon from init. This is even though it was writing to the log successfully after manual initialization.

Also, I will post more information next time. Thanks for your quick response.

1 Like