Solved

Register SUNW.Proxy_SMF_failover with a different user than root

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Using Grep to Find a file 8 91
Parsing a file using ksh 10 64
MarkLogic 1 79
Showing a username in UNIX and using that name in the script 4 33
When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

786 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