home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.aix
- Path: sparky!uunet!ddssuprs!lpc
- From: lpc@dickens.com (Luis P Caamano)
- Subject: Re: documentation on getpriv/setpriv?
- Message-ID: <1992Aug18.141130.18380@dickens.com>
- Date: Tue, 18 Aug 1992 14:11:30 GMT
- References: <1992Aug9.202114.22427@awdprime.austin.ibm.com> <1992Aug12.063644.19476@mintaka.lcs.mit.edu> <KSTAILEY.92Aug15011452@leidecker.gsfc.nasa.gov>
- Organization: Dickens Data Systems, Inc.
- Lines: 68
-
- In article <KSTAILEY.92Aug15011452@leidecker.gsfc.nasa.gov> kstailey@leidecker.gsfc.nasa.gov (Kenneth Stailey) writes:
- >gee look at this:
- >
- >ken@chocolate:~$ uname -s -r -v ; echo BETA
- >AIX 2 3
- >BETA
- >ken@chocolate:~$ strings - /usr/sbin/ftpd | grep '[gs]etpriv'
- >getpriv
- >setpriv
- >
- >I wonder how those strings got in there on a (supposedly)
- >
- >> POSIX-COMPLIANT system
- >
- >I guess they must be in a printf call used for debugging or something like
- >that.
- >
-
- Well, take a look at this:
-
- In article <1992Aug9.190521.21579@awdprime.austin.ibm.com> jfh@greenber.austin.ibm.com (John F Haugh II) writes:
- > I know THAT can be done since getpriv/setpriv is unique to IBM and since
- > there are other POSIX-compliant (really FIPS-151 compliant ...) systems
- > which deliver a working FTPD.
- >
- > ...
- >
- > The mechanism which exists is the same as in any POSIX-compliant system
- > which has POSIX_SAVED_IDS (or whatever that feature test macro is) defined.
- > If you MUST absolutely run something as another ID, fork a child to do that
- > work and notify the parent of the result. I forget how I coded USRCK, but
- > I believe that is the technique I used since I wanted to code to survive
- > the move from 3.1 to 3.2. On the other hand, you can manage your programs
- >
-
-
- # uname -s -r -v
- AIX 2 3
-
- # strings - /usr/bin/usrck | grep priv
- usrck: setpriv
- usrck: setpriv
- setpriv
- statpriv
- privilege
-
- Uhmmm, privilege() is in there too. I guess is true that John forgot
- how he coded usrck :-(
-
- >
- > ...
- >
- > support them after 2 or so years of being ignored. There are probably 3
- > people that know how those functions work, and I'm one of them and I ain't
- > saying nothin', so get over it. AIX is NOT supposed to be yet another
- > proprietary operating system with still more non-standard features - so
- > just use the standard features that everyone else has and be done with it.
- > --
- > John F. Haugh II | MaBellNet: (512) 823-1078 | SneakerNet: 042/2F068
- > InterNet: jfh%snowball.austin.ibm.com@ibmpa.awdpa.ibm.com [TSAKC]
- --
- ---------------------------------------------------------------------------
- Luis P. Caamano | lpc@dickens.com
- Dickens Data Systems, Inc. | uunet!dickens.com!lpc
- Atlanta, GA | (404) 475-8860
- ---------------------------------------------------------------------------
- If I think I know it all, I'll stop learning. -myself
- The more I learn, the more I know I know nothing. -somebody else
-