Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!brutus.cs.uiuc.edu!samsung!emory!mephisto!prism!gt2500a From: gt2500a@prism.gatech.EDU (FLUR) Newsgroups: comp.sys.next Subject: Question about setuid bit Message-ID: <5608@hydra.gatech.EDU> Date: 2 Feb 90 16:19:10 GMT Reply-To: flur@duke.gatech.edu () Distribution: na Organization: Georgia Institute of Technology Lines: 54 I wrote a stupid little script to change my serial port from input to output by simply having two copies of the ttys file. I then made the script publicly executable with chmod 4755 from root, but when I execute the script from my own account, it tells me I don't have permission. Is this a problem, or am I doing something wrong? The script follows: -------------------- Script started on Fri Feb 2 11:17:28 1990 flur@duke> cat /LocalApps/GTNet v#!/bin/csh echo -n "Disabling port...." @ users = `who | grep ttyda | wc -l ` @ kermit = `ps -aux | grep kermit | grep -v grep | wc -l` @ uucp = `ps -aux | grep uucico | grep -v grep | wc -l` if ( $users > 0 || $kermit > 0 || $uucp > 0 ) then echo "" echo "The port is busy. Please try again later." exit else echo "done." echo "" cp /etc/ttys.outgoing /etc/ttys kill -HUP 1 echo "Using kermit to connect to GTNet." echo "Type connect to start GTNet." echo "" /LocalApps/kermit echo -n "Enabling port...." cp /etc/ttys.incoming /etc/ttys kill -HUP 1 echo "done." endif flur@duke> /LocalApps/GTNet csh: Permission denied flur@duke> ls -l !$ flur@duke> ls -l /LocalApps/GTNet -rwsr-xr-x 1 root 618 Jan 31 14:15 /LocalApps/GTNet* flur@duke> script done on Fri Feb 2 11:17:53 1990 -------------------- Please --- no flames on the stupid script (except if it is the cause of the problem)! Thanks Peter ----------------------------Peter Flur---------------------------- USMAIL: Box 32500 Georgia Tech, School of Electrical Engineering, Atlanta, GA 30332 USENET: ...!{allegra,hplabs,ihnp4,ulysses}!gatech!duke!flur INTERNET: flur@duke.gatech.edu, gt2500a@prism.gatech.edu PHONE: (404) 853-9355