Solved

Register SUNW.Proxy_SMF_failover with a different user than root

Posted on 2008-10-28
3
261 Views
Last Modified: 2013-12-27
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
Comment
Question by:smurgu
  • 2
3 Comments
 
LVL 22

Expert Comment

by:blu
Comment Utility
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
 

Accepted Solution

by:
smurgu earned 0 total points
Comment Utility
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
 

Author Comment

by:smurgu
Comment Utility
<method_context>
                        <method_credential user='myuser' group='myuser'
</method_context>
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now