Do you have a question? Post it now! No Registration Necessary. Now with pictures!
August 31, 2009, 6:42 pm
rate this thread
[code to listen and accept connections on port xxx]
s = accept(....
[the child process]
write(1, "Login:", 6);
n = read(0, buf, 99); /* not exactly stellar code but you get the
[do some processing on the input buf. this is the reason why I have to
do things this way.]
execl("/bin/login", "login", buf, NULL);
code runs, but after the execl, login fails with a "FATAL: bad tty" on
the system log.
How can I do this?
Thanks in advance
- » Cloud Ace Technologies is offering Implementation Services on Cloud Computing, Cloud Serv...
- — Newest thread in » Linux Security