ping in c as nonroot

  • Thread starter Philipp Plaenitz
  • Start date
P

Philipp Plaenitz

hello,

is out there any tutorial for writting a c/cpp program,
that can ping an other computer WITHOUT having suid state.

for the moment i only get working raw socket as root.

many thanx


ppl
 
J

Joona I Palaste

Philipp Plaenitz said:
is out there any tutorial for writting a c/cpp program,
that can ping an other computer WITHOUT having suid state.
for the moment i only get working raw socket as root.

The ISO standard C language does not define "ping", "suid state", "raw
sockets" or "root". In fact it does not even define "other computers".
Please ask in comp.unix.programmer.
 
I

Igmar Palsenberg

Philipp said:
is out there any tutorial for writting a c/cpp program,
that can ping an other computer WITHOUT having suid state.

for the moment i only get working raw socket as root.

So the answer is : The isn't.



Igmar
 
J

Jens.Toerring

So the answer is : The isn't.

No, not necessarily, it's just that you asked the question in the
wrong newgroup. Most people usually don't admit to knowing any-
thing here about C++, networking or what "suid state" or root
accounts are since the topic of this group is the C programming
language which does not have any build-in support for networking
or must be used on an OS were "suid state" or root accounts are
available. And for C++ there's another group. Sorry.

You probably should try comp.unix.programmer if the "suid state"
and root account bits aren't misleading me (but I guess I don't
really have to tell you about that group since you have already
posted there).
Regards, Jens
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top