pkgadd issues

I have a server running solaris 8 with veritas 4.1. I am trying to install a package on the server. The package install fails miserably though. I have installed the very same package on other development servers, but for some reason, the install fails on this, soon to be prod, server. No idea why. here's the failed output.

-----------------------------------------
ldappb01-lh:/home/se05922# pkgadd -d . CPTHsone

Processing package instance <CPTHsone> from </home/se05922>

CP Sun ONE Secure Password Plug-in
(SPARC) 4.2.14
Copyright (c) 1999-2004 Critical Path Inc.
All Rights Reserved.

Enter the user id for this installation <noaccess> [?,q] ldapadm

Enter the group id for this installation <other> [?,q] ldap

Enter base installation directory </opt/criticalpath> [?] /apps/iplanet/ldap/criticalpath

//apps/iplanet/ldap/criticalpath doesn't exist, do you want to create it? y
mkdir: Failed to make directory "/apps/iplanet/ldap/criticalpath"; Permission denied

Installation of <CPTHsone> was terminated due to user request.
No changes were made to the system.

------------------------------------------------

So why would permission be denied? It doesnt make sense. Here is df output. I think my filesystems are ok.

------------------------------------------------------

ldappb01-lh:/apps/iplanet/ldap/current/slapd-directory# df -k
Filesystem kbytes used avail capacity Mounted on
/dev/vx/dsk/bootdg/rootvol
5051118 4191774 808833 84% /
/proc 0 0 0 0% /proc
fd 0 0 0 0% /dev/fd
mnttab 0 0 0 0% /etc/mnttab
swap 29113832 16 29113816 1% /var/run
dmpfs 29113816 0 29113816 0% /dev/vx/dmp
dmpfs 29113816 0 29113816 0% /dev/vx/rdmp
/dev/vx/dsk/bootdg/altboot
5051118 27086 4973521 1% /altboot
/dev/vx/dsk/bootdg/0 128988231 1614767 126083582 2% /space/0
swap 512000 128 511872 1% /tmp
/space/0/home 128988231 1614767 126083582 2% /home
/space/0/apps 128988231 1614767 126083582 2% /apps
/space/0/cores 128988231 1614767 126083582 2% /var/cores
/dev/vx/dsk/datadg/ldapvol
20971520 3231897 16630920 17% /apps/iplanet/ldap

-----------------------------------------------------

/etc/vfstab info.

ldappb01-lh:/apps/iplanet/ldap/current/slapd-directory# more /etc/vfstab
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr ufs 1 yes logging
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/vx/dsk/bootdg/swapvol - - swap - no nologging
/dev/vx/dsk/bootdg/rootvol /dev/vx/rdsk/bootdg/rootvol / ufs 1 no nologging
/dev/vx/dsk/bootdg/altboot /dev/vx/rdsk/bootdg/altboot /altboot ufs 2 yes logging
/dev/vx/dsk/bootdg/0 /dev/vx/rdsk/bootdg/0 /space/0 ufs 2 yes logging
swap - /tmp tmpfs - yes size=500m
### START OF SYSCONF 3.0 inserts
/space/0/home - /home lofs - yes -
/space/0/apps - /apps lofs - yes -
/space/0/cores - /var/cores lofs - yes -
### END OF SYSCONF 3.0 inserts
#NOTE: volume rootvol () encapsulated partition c1t0d0s0
#NOTE: volume altboot () encapsulated partition c1t0d0s1
#NOTE: volume swapvol () encapsulated partition c1t0d0s5
#NOTE: volume 0 () encapsulated partition c1t0d0s7
/dev/vx/dsk/datadg/ldapvol /dev/vx/rdsk/datadg/ldapvol /apps/iplanet/ldap vxfs 1 yes -

-----------------------------------------------------------

mount output

ldappb01-lh:/apps/iplanet/ldap/current/slapd-directory# mount
/ on /dev/vx/dsk/bootdg/rootvol read/write/setuid/intr/largefiles/onerror=panic/dev=44c0000 on Thu Jun 28 18:08:14 2007
/proc on /proc read/write/setuid/dev=4e00000 on Thu Jun 28 18:08:14 2007
/dev/fd on fd read/write/setuid/dev=4ec0000 on Thu Jun 28 18:08:15 2007
/etc/mnttab on mnttab read/write/setuid/dev=4fc0000 on Thu Jun 28 18:08:19 2007
/var/run on swap read/write/setuid/dev=1 on Thu Jun 28 18:08:19 2007
/dev/vx/dmp on dmpfs read/write/setuid/dev=2 on Thu Jun 28 18:08:20 2007
/dev/vx/rdmp on dmpfs read/write/setuid/dev=3 on Thu Jun 28 18:08:20 2007
/altboot on /dev/vx/dsk/bootdg/altboot read/write/setuid/intr/largefiles/logging/onerror=panic/dev=44d30b0 on Thu Jun 28 18:08:27 2007
/space/0 on /dev/vx/dsk/bootdg/0 read/write/setuid/intr/largefiles/logging/onerror=panic/dev=44d30b1 on Thu Jun 28 18:08:27 2007
/tmp on swap read/write/setuid/size=500m/dev=4 on Thu Jun 28 18:08:27 2007
/home on /space/0/home read/write/setuid/dev=44d30b1 on Thu Jun 28 18:08:27 2007
/apps on /space/0/apps read/write/setuid/dev=44d30b1 on Thu Jun 28 18:08:27 2007
/var/cores on /space/0/cores read/write/setuid/dev=44d30b1 on Thu Jun 28 18:08:27 2007
/apps/iplanet/ldap on /dev/vx/dsk/datadg/ldapvol read/write/setuid/delaylog/largefiles/ioerror=mwdisable/dev=44d2110 on Thu Jul 26 19:09:21 2007

If anyone can give some input, that would be much appreciated. If you think you need further info, please ask me and i can provide.

Thanks.

-Sowser

Is this a custom package or downloaded from vendor site? if it is custom package, I would suggest you look into the package as to what ID is this script running as. I know you are root and adding the package, but within SVR packaging, you can change all that to make another user install and layout the files.

Also you may need to look at prototype file within the package to see who is the targeted owner of the file/dir that is being created.

If you do have access to the package contents, you can use pkgtrans to get the prototype file. Make sure you read man page of pkgtrans before you use it.

-GGR

Are all the other servers (where it did install successfully) using the same filesystem layout? I suspect that the mounting /app as lofs has something to do with this.

Try giving the path as /space/0/apps instead of just /apps. It might help.

boy o boy, this one is killing me. I think i am narrowing this one down. I was able to find this online.

If you have package request scripts that require running as user root (instead of noaccess [the default] or user install), use the rscript_alt parameter in the admin(4) file to make an appropriate selection. See admin(4).

Not sure about that parameter though...never ever heard of such a thing.

man pages section 4: File Formats: admin(4)

Translation please?

-S