home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / aix / 12982 < prev    next >
Encoding:
Internet Message Format  |  1993-01-04  |  1.0 KB

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