Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!mcsun!unido!unipas!hessmann From: hessmann@unipas.fmi.uni-passau.de (Georg Hessmann) Newsgroups: comp.unix.wizards Subject: socket -> UID Message-ID: <832@unipas.fmi.uni-passau.de> Date: 13 Jan 90 16:50:18 GMT Reply-To: hessmann@unipas.fmi.uni-passau.de (Georg Hessmann) Organization: University of Passau, W-Germany Lines: 15 Two processes communicate with the help of a socket. (Socket has the type PF_INET, SOCK_STREAM) The first process runs as a background demon (using inetd) and waits for incoming messages from the second process. Problem: How can the first process obtain the UID and GID of the second process right from the socket without any extra message from the second process. We want to disable/enable services of process one for certain UID's and GID's without changing the source code of the second process. Thanks, Georg. -- hessmann@unipas.fmi.uni-passau.de hessmann@unipas.uucp