This discussion is archived
4 Replies Latest reply: Nov 8, 2012 7:57 AM by cindys RSS

Encounter error pkginfo: ERROR: attach door: Not owner

931759 Newbie
Currently Being Moderated
Hi,

I encounter this error when I'm using non root user.
$ pkginfo -l SUNWsolnm
pkginfo: ERROR: attach door: Not owner


When I'm using root i will get
root@DEMETER-C2 # pkginfo -l SUNWsolnm
PKGINST: SUNWsolnm
NAME: Solaris Naming Enabler
CATEGORY: system
ARCH: sparc
VERSION: 10,REV=2009.09.16.15.47
BASEDIR: /
VENDOR: Sun Microsystems, Inc.
DESC: Enable Solaris Name in /etc/release file
PSTAMP: re29796
INSTDATE: May 06 2010 16:48
HOTLINE: Please contact your local service provider
STATUS: completely installed
FILES: 2 installed pathnames
1 shared pathnames
1 directories
1 blocks used (approx)
============================================================

From what I understand it sounds like a permission issue for the non root user.
My question would be if my understanding is right where can I set the permission so that my non root user can run this command above?

I did some googl-ing too and found it store at /var/sadm/pkg/SUNWsolnm . Have set permission to 777 but non avail.

Thank for taking your time to read.
Regards,
Joey Tan
Malaysia
  • 1. Re: Encounter error pkginfo: ERROR: attach door: Not owner
    alan.pae Journeyer
    Currently Being Moderated
    Since this is Solaris 10 apparently the easiest thing to do would be to setup and configure Role Based Access Control which was designed with these scenarios in mind.

    docs.oracle.com or

    http://www.ilkda.com/rbac

    if you need assistance.

    alan
  • 2. Re: Encounter error pkginfo: ERROR: attach door: Not owner
    cindys Pro
    Currently Being Moderated
    I don't understand this error. If I'm logged as my user account or I create a new test user on
    a recent Solaris 10 system, I can use this command successfully:

    # groupadd -g 200 users
    # useradd -u 201 -g 200 user1
    # passwd user1
    New Password:
    Re-enter new Password:
    passwd: password successfully changed for user1
    No directory! Logging in with home=/
    Oracle Corporation SunOS 5.10 Generic Patch January 2005
    $ pkginfo -l SUNWsolnm
    PKGINST: SUNWsolnm
    NAME: Solaris Naming Enabler
    CATEGORY: system
    ARCH: sparc
    VERSION: 10,REV=2012.07.30.15.02
    BASEDIR: /
    VENDOR: Oracle Corporation
    DESC: Enable Solaris Name in /etc/release file
    PSTAMP: re29796
    INSTDATE: Aug 06 2012 17:16
    HOTLINE: Please contact your local service provider
    STATUS: completely installed
    FILES: 2 installed pathnames
    1 shared pathnames
    1 directories
    1 blocks used (approx)

    This is a user command. It should work for users.
    Can you create a test user like above and try it again?

    Thanks, Cindy
  • 3. Re: Encounter error pkginfo: ERROR: attach door: Not owner
    931759 Newbie
    Currently Being Moderated
    Hi Cindy,

    I have try using your method and I hit another error,

    $ pkginfo -l SUNWsolnm
    pkginfo: ERROR: cannot enumerate database entries

    Thanks for the assist.
  • 4. Re: Encounter error pkginfo: ERROR: attach door: Not owner
    cindys Pro
    Currently Being Moderated
    Can you identify which Solaris 10 release this is?

    Thanks, Cindy

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points