SUMMARY: error when trying to do a groupdel in a pkgrm

From: Skyrca, Nicole <NSkyrca_at_NaviSite.com>
Date: Mon Jan 20 2003 - 12:53:50 EST
Hi,
I got one response from G. Hackett to do a truss to figure out what was
going on.

I found that when running groupdel within pkgrm, it makes a temporary
file in /var/tmp.  When the "rename" command runs to copy the temporary
group file back to the real one, it dies with EXDEV18.  According to the
man page for rename, EXDEV errors mean "the links named by old and new
are on different filesystems".  I have /var on it's own filesystem.

As my original post said, I had to make sure that TMPDIR was not set
before running the groupdel command.  My problem was that I had the
following lines in my script:
TMPDIR=""
groupdel sshd

But, this doesn't work.  This has to be all on one line to work. The
following works:

TMPDIR= groupdel sshd


Nicole Skyrca
NaviSite Inc.
315-453-2912 x 5861
nskyrca@navisite.com


-----Original Message-----
From: Skyrca, Nicole
Sent: Thursday, January 16, 2003 11:24 AM
To: sunmanagers@sunmanagers.org
Subject: error when trying to do a groupdel in a pkgrm

Hi,
I'm creating a package on Solaris 8, and I want to be able to do a
"groupdel" command in a postremove script.

But, I keep getting the following error when it runs:
UX: groupdel: ERROR: Cannot update system files - group cannot be
deleted.

I looked this message up on the web, and did find a summary about the
same problem on the Sun Managers list.  It says a workaround is to make
sure that $TMPDIR is unset before calling groupdel.  I have tried this
and it still doesn't work.  Does anyone have other ideas on this?

Thanks!

Nicole Skyrca
NaviSite Inc.
315-453-2912 x 5861
nskyrca@navisite.com
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Mon Jan 20 12:57:24 2003

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:01 EST