Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 288
  • Last Modified:

Register SUNW.Proxy_SMF_failover with a different user than root

I am registering a SUNW.Proxy_SMF_failover resource in a sun cluster 3.2.

The cluster resource needs to run with a different user than root.

I assumed the solaris.cluster.admin and solaris.cluster.modify role to my user and tried to register resources in the cluster with myuser. When the cluster resource is started is starting under the root user. If I enable the resource manualy using "svcadm enable nameofservice" the app is starting under myuser.

How do I register the service in a cluster to start with a different user than root?
0
smurgu
Asked:
smurgu
  • 2
1 Solution
 
Brian UtterbackPrinciple Software EngineerCommented:
You can specify the credentials that the startup emthod runs with, including the user name. This is the method-credential property. It is a subtype of the method_context clause, which is itself a subtype of the exec_method clause.

It looks like this;

               <method_context>
                        <method_credential
                                user='sys'
                                group='sys'
                                privileges='basic,file_dac_write' />
                </method_context>
0
 
smurguAuthor Commented:
They are specifyed whet is run the svcadm enable with root user from command line the application starts with my user but inside the cluster the same service starts the app with root user.

If have this problem inside the cluster.
0
 
smurguAuthor Commented:
<method_context>
                        <method_credential user='myuser' group='myuser'
</method_context>
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now