tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Tony Warner <Tony.Warner () gat ! com>
To: tru64-unix-managers
Subject: SUMMARY: suid weirdness
Date: Thu, 27 May 1999 15:14:30 +0000	[thread overview]
Message-ID: <96079042215982.tru64-unix-managers.marc@archive.invalid> (raw)

Thanks to all the quick responses.

The solution is:

Tru64 Unix does not allow setuid shell scripts!

Everyone who responded recommended writing a C wrapper,
and setting that setuid, or using sudo.

Never having done either before, it looks like I'm forging
ahead into uncharted waters. (at least, uncharted for me)};-)

Thanks for all the input,
Tony Warner

Tony Warner wrote:
> 
> 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@gat.com
> General Atomics
> 
> *********************************************************************

-- 

*********************************************************************
Tony Warner						Tony.Warner@gat.com
General Atomics					(619) 455-4285

*********************************************************************

                 reply	other threads:[~1999-05-27 15:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox