Disable/enable port when not SU.

Mike Johnston mikej at dasys1.UUCP
Tue Mar 21 08:25:31 AEST 1989


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.........."                     |
+-----------------------------------------------------------------------------+



More information about the Comp.unix mailing list