Disabling user shutdowns?

Hi all,

Just curious how I can go about disabling user shutdowns. I’m able to log
in as any user and shutdown the system. I’d like to have it so only root
can do this. I checked out the usage for phshutdown and tried the “-S
users” but all that does is set the default button to log off the user, it
still allows them to shutdown the system. Is there a simple flag somewhere
to disable this functionality?

Thanks,

Jim

Jim Lambert <jlambert@futurex.com> wrote:

Hi all,

Just curious how I can go about disabling user shutdowns. I’m able to log
in as any user and shutdown the system. I’d like to have it so only root
can do this. I checked out the usage for phshutdown and tried the “-S
users” but all that does is set the default button to log off the user, it
still allows them to shutdown the system. Is there a simple flag somewhere
to disable this functionality?

Thanks,

Jim

Hi Jim,

In QNX 6.1 you can restrict shutdown privilege to root by simply creating a
new file, like this:

touch /usr/photon/config/phshutdown.restrict

The presence of this file allows any user to end a Photon session, but prevents
users who do not have the root password from shutting down or rebooting the
machine. See the docs on phshutdown for more details.

Barry