home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / aix / 8891 < prev    next >
Encoding:
Text File  |  1992-08-18  |  2.9 KB  |  79 lines

  1. Newsgroups: comp.unix.aix
  2. Path: sparky!uunet!ddssuprs!lpc
  3. From: lpc@dickens.com (Luis P Caamano)
  4. Subject: Re: documentation on getpriv/setpriv?
  5. Message-ID: <1992Aug18.141130.18380@dickens.com>
  6. Date: Tue, 18 Aug 1992 14:11:30 GMT
  7. References: <1992Aug9.202114.22427@awdprime.austin.ibm.com> <1992Aug12.063644.19476@mintaka.lcs.mit.edu> <KSTAILEY.92Aug15011452@leidecker.gsfc.nasa.gov>
  8. Organization: Dickens Data Systems, Inc.
  9. Lines: 68
  10.  
  11. In article <KSTAILEY.92Aug15011452@leidecker.gsfc.nasa.gov> kstailey@leidecker.gsfc.nasa.gov (Kenneth Stailey) writes:
  12. >gee look at this:
  13. >
  14. >ken@chocolate:~$ uname -s -r -v ; echo BETA
  15. >AIX 2 3
  16. >BETA
  17. >ken@chocolate:~$ strings - /usr/sbin/ftpd | grep '[gs]etpriv'
  18. >getpriv
  19. >setpriv
  20. >
  21. >I wonder how those strings got in there on a (supposedly)
  22. >
  23. >> POSIX-COMPLIANT system
  24. >
  25. >I guess they must be in a printf call used for debugging or something like
  26. >that.
  27. >
  28.  
  29. Well, take a look at this:
  30.  
  31. In article <1992Aug9.190521.21579@awdprime.austin.ibm.com> jfh@greenber.austin.ibm.com (John F Haugh II) writes:
  32. > I know THAT can be done since getpriv/setpriv is unique to IBM and since
  33. > there are other POSIX-compliant (really FIPS-151 compliant ...) systems
  34. > which deliver a working FTPD.
  35. > ...
  36. >
  37. > The mechanism which exists is the same as in any POSIX-compliant system
  38. > which has POSIX_SAVED_IDS (or whatever that feature test macro is) defined.
  39. > If you MUST absolutely run something as another ID, fork a child to do that
  40. > work and notify the parent of the result.  I forget how I coded USRCK, but
  41. > I believe that is the technique I used since I wanted to code to survive
  42. > the move from 3.1 to 3.2.  On the other hand, you can manage your programs
  43. >
  44.  
  45.  
  46. # uname -s -r -v
  47. AIX 2 3
  48.  
  49. # strings - /usr/bin/usrck | grep priv
  50. usrck: setpriv
  51. usrck: setpriv
  52. setpriv
  53. statpriv
  54. privilege
  55.  
  56. Uhmmm, privilege() is in there too.  I guess is true that John forgot 
  57. how he coded usrck :-(
  58.  
  59. >
  60. > ...
  61. >
  62. > support them after 2 or so years of being ignored.  There are probably 3
  63. > people that know how those functions work, and I'm one of them and I ain't
  64. > saying nothin', so get over it.  AIX is NOT supposed to be yet another
  65. > proprietary operating system with still more non-standard features - so
  66. > just use the standard features that everyone else has and be done with it.
  67. > -- 
  68. > John F. Haugh II      | MaBellNet: (512) 823-1078    | SneakerNet: 042/2F068
  69. > InterNet: jfh%snowball.austin.ibm.com@ibmpa.awdpa.ibm.com            [TSAKC]
  70. -- 
  71. ---------------------------------------------------------------------------
  72. Luis P. Caamano                    |         lpc@dickens.com
  73. Dickens Data Systems, Inc.         |         uunet!dickens.com!lpc
  74. Atlanta, GA                        |         (404) 475-8860
  75. ---------------------------------------------------------------------------
  76. If I think I know it all, I'll stop learning. -myself
  77. The more I learn, the more I know I know nothing. -somebody else
  78.