Do I need 2 sudos

Roger McCalman r.mccalman at elsevier.co.uk
Tue Apr 4 15:18:32 EDT 2000


If you put all your applications/tools etc on a file server, you can
use the automounter to mount based on the os type/version. If the
parts of application are split between os dependent and os independent
then all OS's can share the sudoers file but get different binaries.

Cheers, Roger

On Tue, Apr 04, 2000 at 09:48:04AM -0600, Alek O. Komarnitsky (N-CSC) wrote:
> > From: "Todd C. Miller" <Todd.Miller at courtesan.com>
> > Subject: Re: Do I need 2 sudos
> > To: kamala <kamala at rsa.ericsson.se>
> > Cc: sudo-users at courtesan.com
> 
> #!/bin/sh
> OS=`uname -s | sed -e 's/-//'`
> OSREL=`uname -r | sed -e 's/^[A-Z]*//' -e 's/^\.//' -e 's/\..*$//'`
> if [ "$OS" = "IRIX64" ]; then OS=IRIX; fi
> if [ "$OS" = "AIX" ]; then
>     OSREL=`uname -v`
>     OSMIN=`uname -r`
> fi
> OSTYPE=$OS$OSREL
> DIR=/appl/sudo
> CMD=`basename $0`
> RUNCMD=$DIR/$OSTYPE/bin/$CMD
> PATH=$DIR/$OSTYPE/bin:${PATH}; export PATH
> 
> if [ -x $RUNCMD ]; then
>     exec $CMD ${1+"$@"}
> else
>     echo "could not find $RUNCMD"
> fi



More information about the sudo-users mailing list