Hello All, Here is brief summary of events and answers to all questions. Facts: In my case. 1)I was logged in a root. my uid(0) and gid(1) were all what root supposed to have. 2)It was not a NFS share or mounted FS where I was trying to install. In fact on this machine NFS has not been configured and have no plans on using it. The Problem. When installing the CISCO iSCSI initiator, the script "CSCOiscsi/install/request" uses "/usr/xpg4/bin/id" to figure out the efective uid, which some how comes out to be "60002", which is the uid of user "noaccess", see the code snippet below between dotted lines. If the same command ran from the command line it shows correct EUID which is "0". Resolution: In the code snippet below from the "request" script I commented out the "exit 1" line, saved the file, ran checksum on it, noted the new chksum values, edited the "CSCOiscsi/pkgmap" file to replace the cksum values for the cksum of "request" script, and it worked just fine. I still do not know why the script get the EUID of "60002". Hence the subject on email was " I am baffled" wish I had time to investigate and play with it some more, but at this time I am happy with the work around. Thanks to all who responded, much appreciated. Aali ------------------------------------------- # Copyright (c) 2000 Cisco Systems, Inc. # All rights reserved. trap 'exit 3' INT TERM QUIT HUP # check for root privs if [ -x /usr/xpg4/bin/id ] ; then userid=`/usr/xpg4/bin/id -u` if [ $userid -ne 0 ] then printf "You must be superuser to run this script!\n" printf "Your current effective uid is $userid!\n" exit 1 fi fi ------------------------------------------- > > From: Vinay Sequeira <vinay.sequeira@maine.edu> > Date: 2005/07/27 Wed AM 09:33:48 EDT > To: aalinaser@cox.net > Subject: CSCOiscsi install ? > > Hi , > > Were you able to install this package?.. I am also seeing the same > error.. > > Thanks, Vinay > > > > Message: 4 > Date: Mon, 25 Jul 2005 18:35:02 -0400 > From: <aalinaser@cox.net> > Subject: I am totally baffled > To: <sunmanagers@sunmanagers.org> > Message-ID: > <20050725223505.XQZW567.lakermmtao08.cox.net@smtp.east.cox.net> > Content-Type: text/plain; charset=ISO-8859-1 > > Hello All, > > I am logged in as root and when I try to install the following package, > this is what get. > > > #:/opt/downloads>id > uid=0(root) gid=1(other) > > #:/opt/downloads>pkgadd -d . CSCOiscsi > > Processing package instance <CSCOiscsi> from </opt/downloads> > > Cisco iSCSI device driver > (sparc) 3.3.6 > Cisco Systems, Inc. > You must be superuser to run this script! > Your current effective uid is 60002! > pkgadd: ERROR: request script did not complete successfully > > Installation of <CSCOiscsi> failed. > No changes were made to the system. > > #:/opt/downloads>id > uid=0(root) gid=1(other) > > > Thanks _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagersReceived on Wed Jul 27 09:58:36 2005
This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:50 EST