[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Failing postinst script with suidmanager

I am sorry but I have repeatedly tested the scripts you mentioned on my
system and they work fine. We have used suidmanager since months without
anything happening as you indicate. I have nothing to go on.

The set -e just sets up the script to abort in case of an error. One of
the statements in that script must cause the error and the abort. Maybe
others have more ideas how to approach this....

On Sat, 10 May 1997, Karl M. Hegbloom wrote:

>>>>>> "Christoph" == Christoph Lameter <clameter@power.net> writes:
>    Christoph> You need to tell us which statement fails. All
>    Christoph> statements you tried work successfully just the script
>    Christoph> returns an error code?
> All of the statements in the script work if I paste them into an
> The script returns error 1 iff `set -e` is at the top of it.
> With `set -e` commented out, the script returns code 0, and does
>everything it is supposed to.
> It runs fine if `set -e` is commented out.  It does its job no matter 
>whether `set -e` is in there or not, but `set -e` causes it to return
>code 1, which in turn makes `dpkg -i` or `dpkg --configure` fail.
> I checked both the "/etc/suid.conf" file, and the ownership and
>permissions of the files it is supposed to set...  I deleted the lines
>in "/etc/suid.conf" that got added by
>"/var/lib/dpkg/info/rlpr.postinst", and ran the script.  I also
>`chown`d the files, so I could see if they are being reset by
>suidmanager. I did this once with `set -e` commented out, and again
>with it left in.  Both runs the entries got made, and the files'
>permissions and ownership got set.  But with `set -e`, it returns 1,
>without it returns 0.
>    Christoph> Are you sure you run the postinst script in superuser
>    Christoph> mode with the correct paths set?
>Yes, from an xterm where I've gone `su -`, and verified with `which`
>that all of the commands are being found.
> It's the `set -e`, I tell you!
>Karl M. Hegbloom <karlheg@inetarena.com>
>Portland, OR  USA
>Debian GNU 1.2  Linux 2.1.36 AMD K5 PR-133

--- +++ --- +++ --- +++ --- +++ --- +++ --- +++ --- +++ ---

TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .

Reply to: