🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix
Article #546

Disable/enable port when not SU.

#546
From: Mike Johnston
Date: Mon, 20 Mar 1989 22:25
27 lines
2174 bytes
I am writing a shell script that will be transmitting a payroll from one
location to another via UUCP. I only have 1 line for dial in/out so the
program must be able to disable the port before dial-out and re-enable it
for dial-in when it is finished. The problem I am having is that the
when I try to enable or disable a port when not logged in as root I get
the message : "You must be logged in as root to use enable/disable".

I tried setuid and setgid on both *able programs but I stillo get the 
message. Now, if I can't get around this due to hardcoding I thought
maybe fiddling with init or getty would do something but I am not sure
exactly what I should do. I am running on an Altos pre- SYS V machine
so getty does not sit directly on the line. Even if it did , it would
be respawned and get in the way.

I have also considered one of the "uugetty" type programs as a partial
solution to the problem , but I would like to avoid this since I will 
have to install this arrangement on approximately 12 machines up and down
the east coast. If necessary I will do this. If you DO suggest I do this,
would you recommend one? I have never used any of them so recommendations
are a must. Thanks.

+-----------------------------------------------------------------------------+
|Michael R. Johnston                                             / cpmain!mrj |
|Franchise Data Specialist                 ....cmcl2!phri!dasys1!             |
|Career Employment Services Inc.                                 \ mikej      |
|    ".......but it was working just yesterday.........."                     |
+-----------------------------------------------------------------------------+
Technical Details
Message-ID: <5032@dasys1.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!voder!pyramid!prls!mips!zorba!dasys1!mikej

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!voder!pyramid!prls!mips!zorba!dasys1!mikej
From: mikej@dasys1.UUCP (Mike Johnston)
Newsgroups: comp.unix
Subject: Disable/enable port when not SU.
Keywords: enable disable xenix help!
Message-ID: <5032@dasys1.UUCP>
Date: 20 Mar 89 22:25:31 GMT
Sender: dtynan@zorba.Tynan.COM
Organization: The Big Electric Cat, NYC, NY
Lines: 27
Approved: dtynan@zorba.Tynan.COM