suid weirdness

From: Tony Warner <Tony.Warner_at_gat.com>
Date: Wed, 26 May 1999 17:33:11 -0700

Hi managers,

Have a weird problem trying to get a suid script to run
correctly on 4.0d or 4.0e.

I have a very short script that simply moves a file
from one place and overwrites an existing file. The existing
file that it overwrites is run by root, and I need to run
this script as a regular user. this is exactly like
the /usr/bin/passwd command in function.
So, I have written the sh script and created it's permissions
like this:
permissions 4750
owner root
group test

Shouldn't this allow anyone in the group 'test' to run this
script and allow the script to have root priveledges?

This works fine on HP-UX 10.2. I happened to write this script
there before moving it to my alpha. Everything looks just the
same. Is there something I'm missing?

Thanks,
Tony Warner

-- 
*********************************************************************
Tony Warner					Tony.Warner_at_gat.com
General Atomics				
*********************************************************************
Received on Thu May 27 1999 - 00:35:42 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:39 NZDT