The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
grep unix.com with google



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

Closed Thread
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-12-2009
Registered User
 

Join Date: Jan 2009
Posts: 49
How to import the new service

Hi

How to import the new service which i created without root permission.
As well how we can set the uid in service.

When i import i got the following error,

svccfg import /var/svc/manifest/site/newservice.xml
svccfg: Could not create temporary service "TEMP/site/newservice" (permission de
svccfg: Import of /var/svc/manifest/site/newservice.xml failed. Progress:
svccfg: Service "site/newservice": not reached.
svccfg: Instance "newservice": not reached.



Regards,
Kalai
  #2 (permalink)  
Old 03-12-2009
Registered User
 

Join Date: May 2008
Location: SINGAPORE.. The "FINE" City
Posts: 2,353
Use this as your checklist solaris 10: add new svc
  #3 (permalink)  
Old 03-12-2009
Registered User
 

Join Date: Jan 2009
Posts: 49
Thanks,But these things can be done only by the root user.
but i need to create new bundle of service and import the service whitout root access.
  #4 (permalink)  
Old 03-12-2009
Registered User
 

Join Date: May 2008
Location: Vienna, VA + Bombay, India
Posts: 109
The question that comes to my mind is, "why do you NOT want to import this service as root"? When stuff breaks you want root to fix it, so why not let root control what goes on with her/his server? If you are still insistent on this, ask your root to grant you RBAC rights.
  #5 (permalink)  
Old 03-13-2009
Registered User
 

Join Date: Jan 2009
Posts: 49
The application which am going to start will not work start when we start as root.I have one more doubt,where i can mention the uid in service
  #6 (permalink)  
Old 03-18-2009
TonyFullerMalv's Avatar
Registered User
 

Join Date: Sep 2008
Location: Malvern, Worcs. U.K.
Posts: 933
SMF services have to be installed and run as root, what you can do is in the startup script (in /var/svc/method/application IIRC) do the following to run your application as a non-root user:
su - username -c commandtostartapplication

The startup script being what you call from the start section of your /var/svc/manifest/site/newservice.xml file.
  #7 (permalink)  
Old 03-19-2009
Registered User
 

Join Date: Jan 2009
Posts: 49
Thanks for all u r help
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Identitaten in einer Service orientierten Welt - Identity as a Service Linux Bot Solaris BigAdmin RSS 0 02-13-2009 09:50 AM
Identities in a Service-Oriented World: Identity as a Service Linux Bot Solaris BigAdmin RSS 0 11-24-2008 03:30 PM
exceptions in import madmat Shell Programming and Scripting 1 07-12-2007 04:38 PM
import omran UNIX for Dummies Questions & Answers 1 01-27-2003 01:10 AM
import omran Shell Programming and Scripting 2 12-17-2002 02:47 PM



All times are GMT -4. The time now is 10:30 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0