[Sunhelp] su notification
John Kennedy
jkennedy at orent.com
Sun Feb 27 09:16:08 CST 2000
Moshe,
Actually the user would be running the script that would call the su
executable command.
John
>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<
On 2/24/00, 4:14:30 AM, Moshe Levy <moshel at novawiz.com> wrote regarding
Re: [Sunhelp] su notification:
> That way my users can just execute the su executible instead of the
'new'
> su script.
> John Kennedy wrote:
> > Moshe Levy wrote:
> > >
> > > How can i configure solaris to send email to root when ever (and soon
> > > as) some user is makeing 'su' to some other account ?
> > > and notify in the mail who made 'su' and to which account.
> > >
> > > Thanks.
> > >
> > > _______________________________________________
> > > SunHELP maillist - SunHELP at sunhelp.org
> > > http://www.sunhelp.org/mailman/listinfo/sunhelp
> >
> > Try replacing the su binary with a script such as
> > _______________cut _________________
> > #!/bin/ksh
> > chg = '`whoami` is switching to $1
> > cat /dev/null | mailx -s $chg user-root at system.com
> > su $1
> > ______________cut___________________
> >
> > or something similar...
> > John
> > --
> > If you receive something that says "Send this to everyone you
> > know," PLEASE pretend you don't know me.
> >
> > Your anti-Microsoft signatures for Monday are...
> >
> > I sense much NT in you. NT leads to bluescreen, bluescreen leads to
> > downtime, downtime leads to suffering. NT is the path to the
darkside.
> > Powerful UNIX is
> > - Jedi SysAdmin
> >
> > Your mouse has moved. Windows must be restarted for the change to take
> > effect. Reboot now?
> >
> > _______________________________________________
> > SunHELP maillist - SunHELP at sunhelp.org
> > http://www.sunhelp.org/mailman/listinfo/sunhelp
> _______________________________________________
> SunHELP maillist - SunHELP at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sunhelp
More information about the SunHELP
mailing list