ZeroC

Archived

This forum has been archived. Please start a new discussion on GitHub.

Running server as `root' is not allowed

I am trying to get my IceGridNode to run a server as root. However, server will not start up with root privileges. It gives the error:
running server as `root' is not allowed

The IceGridNode process is running as root:
root 3984 0.0 0.4 294756 8928 ? Sl 11:25 0:00 /usr/bin/icegridnode --daemon --pidfile /var/run/icegridnode.pid --Ice.Config=/mnt/home/bdr/config.grid

My application.xml specifies root as the user:
<server id="BDRServer" exe="bdr_server_start.sh" activation="always" user="root">

Is there something I am missing?

Comments

  • matthew
    matthew NL, Canada
    As running a server as root represents a security risk you must set the property IceGrid.Node.AllowRunningServersAsRoot=1

    See http://www.zeroc.com/doc/Ice-3.2.1/manual/PropRef.50.12.html for full details.
  • I put that property in my config and it says:
    warning: unknown property: IceGrid.Node.AllowRunningServersAsRoot

    That property doesn't show up in the Distributed Programming with Ice pdf either.
  • dwayne
    dwayne St. John's, Newfoundland
    What version of Ice are you using?
  • The version is 3.2.0.
  • dwayne
    dwayne St. John's, Newfoundland
    jesse wrote: »
    The version is 3.2.0.

    The ability to start servers as root and the property that controls it were added in Ice 3.2.1. You will need to upgrade.
  • Ok, thanks for your help.