Solved

Register SUNW.Proxy_SMF_failover with a different user than root

Posted on 2008-10-28
3
281 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

751 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