vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| On Wed, Jun 22, 2005 at 03:31:55PM -0700, William Ahern wrote: > Following is a patch to inetd which groks a special user and/or group of > `$peer'. If $peer is given as a user or group, getpeereid() is used to get > the peer's eid. Then instead of using getpwnam or getgrnam, getpwuid or > getgrgid is used to get those structures for further processing. Of course, > this only works for unix domain sockets (which inetd already supports). > And here's a man page patch. --- /usr/src/usr.sbin/inetd/inetd.8 Wed Jun 30 00:58:12 2004 +++ ./inetd.8 Wed Jun 22 15:59:34 2005 @@ -288,6 +288,14 @@ If a group is specified and user is not root, the supplementary groups associated with that user will still be set. +As a special case, a user or group of +.Dq $peer +translate into the user name and/or group name of the connecting peer. +Currently this feature only works for sockets in the UNIX domain (i.e. with a +.Em protocol +of +.Dq unix +). .Pp The .Em server program |