Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: RFC: A Simple Socket Server Using 'inetd'

by idsfa (Vicar)
on Apr 13, 2006 at 19:31 UTC ( #543199=note: print w/ replies, xml ) Need Help??


in reply to RFC: A Simple Socket Server Using 'inetd'

Running anything as root that does not need to be is a bad habit to get into, even for a "quick and dirty" program like this. Especially anything that you have set up to be available from now until you go back in and remove it (even across reboots). Change:

secshsms stream tcp nowait root /usr/local/bin/sinet.pl + secshsms

to

secshsms stream tcp nowait nobody /usr/local/bin/sinet.pl + secshsms

This change runs your program as the almost completely unprivileged user "nobody". (man inetd.conf)


The intelligent reader will judge for himself. Without examining the facts fully and fairly, there is no way of knowing whether vox populi is really vox dei, or merely vox asinorum. — Cyrus H. Gordon


Comment on Re: RFC: A Simple Socket Server Using 'inetd'
Select or Download Code
Re^2: RFC: A Simple Socket Server Using 'inetd'
by samizdat (Vicar) on Apr 13, 2006 at 19:50 UTC
    excellent point. update in progress.

    Don Wilde
    "There's more than one level to any answer."

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://543199]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2014-09-16 20:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (47 votes), past polls