home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!rpi!utcsri!sys.toronto.edu!ahmedk
- Newsgroups: comp.unix.aix
- From: ahmedk@sys.toronto.edu (Khalid Ahmed)
- Subject: AIX security question
- Message-ID: <1993Jan4.135133.5868@jarvis.csri.toronto.edu>
- Organization: CSRI, University of Toronto
- Date: 4 Jan 93 18:51:33 GMT
- Lines: 19
-
- Hello,
-
- I am writing a system daemon which needs to change to from
- the root id to another other id to write to some log files and then
- back again to root. I was told that the euid cant be changed
- unless the ruid and saved ids are also changed to the same values.
- Therefore, I use setuidx(ID_SAVED|ID_EFFECTIVE|ID_REAL, id) to change
- from root to non-root user ids (and vice versa) which seems to work.
-
- My question is whether a user could kill the daemon when it
- changes to that persons id? Although the real,effective and saved
- uids are the users, the login id is still root. Will kill check
- the login id of a process before killing it?
-
- Email responses welcome. Thanks in advance.
-
- Khalid Ahmed
- University of Toronto
-
-