IPS custom package user source


 
Thread Tools Search this Thread
Operating Systems Solaris IPS custom package user source
# 1  
Old 04-26-2016
Oracle IPS custom package user source

Hello guys,

I'm new to this forum and got a question which may be quite uncommon. I created a custom IPS package (using this How to) with some software I have to install frequently to different Solaris 11 zones (MongoDB to be precise).

This software will be installed under "/opt/mongodb" and has to be run by a user called "mongo". So I created a manifest like below and as I wanted to install the package the command told me that "mongo" is an unknown user.

As a little background. My zones are using LDAP to authenticate users and function users (like "mongo"). So "mongo" is not present in the "/etc/passwd" file. I don't know why but the "pkg install"-command wants to have the user to be present in "/etc/passwd" and fails because of this LDAP thing.

I'm able to create directories and files and "chown" them to "mongo" but apparently unable to install packages which refer to the user directly.

Manifest (excerpt)
Code:
dir  path=opt/mongodb owner=mongo group=mongo mode=0755
dir  path=opt/mongodb/bin owner=mongo group=mongo mode=0755
file opt/mongodb/bin/mongod \     path=opt/mongodb/bin/mongod owner=mongo \     group=mongo mode=0644

Thanks and regards,
Daniel Heitepriem

Last edited by dheitepriem; 05-27-2016 at 05:29 AM.. Reason: Added link to How to
# 2  
Old 05-27-2016
Just a quick information how I solved this issue:

I created an install script which
1) adds the corresponding user temporarely
2) installs the package from the local IPS
3) deletes the user it created earlier
4) "chowns" the files/directories to the final user (user information are now retrieved via LDAP)
5) uninstalls itself
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

XVFB Source package for AIX

Please send me link for XVFB Source package for AIX (3 Replies)
Discussion started by: prathap.g
3 Replies

2. Solaris

Displaying Solaris IPS package dependency graphs

What do people think of this tool? pkgtree - for displaying a visual representation of Solaris IPS package dependencies. (0 Replies)
Discussion started by: cambridge
0 Replies

3. Solaris

Package creation problems with Source files

Hi, I am creating "LSOF" solaris package from solaris "source" files. I have compiled the source file and with that i created prototype file also. Then using pkgmk command i can make the package . In the package i am having (pkginfo pkgmap reloc) two file and one directory respectively But... (3 Replies)
Discussion started by: Kathirvel G
3 Replies

4. Solaris

Solaris 11 - custom publisher IPS

Hi all, we are starting to build some basic infrastructure for using solaris 11. I have built an IPS of solaris packages from the DVD images. what I want to do next is create a repository of custom packages. so in that case I want a publisher of "my-company-name" and not solaris. can... (1 Reply)
Discussion started by: robsonde
1 Replies

5. AIX

How to compile a package in AIX when we download its source?

How to compile a package surce in AIX when we download its source? (2 Replies)
Discussion started by: johnveslin
2 Replies

6. UNIX Desktop Questions & Answers

Solaris 10 - Compiling package from source? Different from pkgadd?

Hey everyone, I'm using a SPARC based Solaris 10 5/09 machine and want to install PHP support to it. I already have mysql and apache( came with OS, just started the proccess) installed, so this is the last thing before I can get to learning development :) However, there's something I'm not sure... (1 Reply)
Discussion started by: agummad
1 Replies

7. Red Hat

Custom package installation using kickstart

Hi there, I've started playing around with Linux a few days back, as part of my intenship. I was wondering if there is anyway I can install custom packages (non RPM packages...say like Oracle) as a part of Kickstart. My machines are running RHEL 4. Thanks a lot :) (1 Reply)
Discussion started by: iman453
1 Replies

8. AIX

AIX custom package install query

I have created a .bff package for an app to tbe installed on AIX servers across regions. I am pretty new to the AIX mode of packaging using mkinstallp but I have been able to get the same done. I installed the same on the server in which i created the package and the application was deployed... (9 Replies)
Discussion started by: jobbyjoseph
9 Replies

9. HP-UX

Output of Custom package scripts to terminal

Hi, I am doing some testing with creation of depots on HP-UX systems (11.11). Want to display some echo statements based on the processing during checkinstall, pre & postinstall scripts on the terminal. The echo statements are getting directed to /var/adm/sw/swagent.log I want to display... (7 Replies)
Discussion started by: vibhor_agarwali
7 Replies
Login or Register to Ask a Question