From owner-freebsd-questions Sat Mar 25 21:01:55 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id VAA29761 for questions-outgoing; Sat, 25 Mar 1995 21:01:55 -0800 Received: from kksys.skypoint.net (kksys.skypoint.net [199.86.32.5]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id VAA29754 for ; Sat, 25 Mar 1995 21:01:53 -0800 Received: from starfire.mn.org by kksys.skypoint.net with smtp (Smail3.1.29.1 #2) id m0rskHU-0002HqC; Sat, 25 Mar 95 22:50 CST Received: (from john@localhost) by starfire.mn.org (8.6.8/1.2.1) id XAA23117 for FreeBSD-questions@FreeBSD.org; Sat, 25 Mar 1995 23:01:20 -0600 From: John Lind Message-Id: <199503260501.XAA23117@starfire.mn.org> Subject: setting ID's To: FreeBSD-questions@FreeBSD.org (FreeBSD questions) Date: Sat, 25 Mar 1995 23:01:20 -0600 (CST) X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 914 Sender: questions-owner@FreeBSD.org Precedence: bulk This is on a FreeBSD 2.0 system, 2.0-950210-SNAP. As a convenience, I tried to write a tiny little program to run as root to execute a shell script to set up a SLIP link, including the route commands. The itty-bitty program just does a system() request with the path to a shell script as the sole argument. When this shell script is run from a root login or su'ed shell, it works correctly, but when invoked from this program which is -rwsr-xr-x root the route command complains that it is not being run by root. I even tried setuid(geteuid()) but that didn't help at all. I clearly do not have a good understanding of real/effective/actual user ID's with FreeBSD/BSD 4.4, and would appreciate any pointers to help me understand better, as well as the immediate solution to my problem. Thanks! John Lind, Starfire Consulting Services E-mail: john@starfire.MN.ORG USnail: PO Box 17247, Mpls MN 55417