TIP: Click on subject to list as thread! ANSI
echo: yabbs.unix
to: ALL
from: statix@yabbs
date: 1994-03-09 18:45:46
subject: detecting SU`ing

From: statix@yabbs
To: all@yabbs
Subject: detecting SU'ing
Date: Wed Mar  9 18:45:46 1994

anyone got the best way to tell if someone is running a program while 
they are su'ed into another account (i.e. root su's to my account 
to run some of my programs (so I can't pull an if (!getuid()) raise_hell 
type deal) would stat()ing the tty the person is running the program from 
and comparing the owner of it  with the uid of the person running  the 
program let me know?  If anyone has any suggestions for the best way
to do this, please lemme know.

                       statix

SOURCE: yabbs via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.