Solved

Register SUNW.Proxy_SMF_failover with a different user than root

Posted on 2008-10-28
3
283 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 22

Expert Comment

by:blu
ID: 22823089
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
ID: 22823125
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
ID: 22823182
<method_context>
                        <method_credential user='myuser' group='myuser'
</method_context>
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.:

624 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