Forum Discussion
6 Replies
- Altera_Forum
Honored Contributor
Can anybody help with this problem ?
regards, rocker - Altera_Forum
Honored Contributor
Please try change the def in uClinux-dist/user/inetd/inetd.c to higher value.
# define MAX_CONNECT 8 - Hippo - Altera_Forum
Honored Contributor
<div class='quotetop'>QUOTE (hippo @ Sep 3 2009, 12:44 PM) <{post_snapback}> (index.php?act=findpost&pid=23734)</div>
--- Quote Start --- Please try change the def in uClinux-dist/user/inetd/inetd.c to higher value. # define MAX_CONNECT 8 - Hippo[/b] --- Quote End --- Thanks a lot hippo for the answer.Now I set MAX_CONNECT to 24 but I can open upto 10 session.It increased from 8 to 10 but still I can not open 12 session. Other settings are: [*] Legacy (BSD) PTY support (256) Maximum number of legacy PTY in use also I set /dev/pts to 24 count in device_tables.txt. After opening 10 sessions ,it shows "telnetd: All network ports in use". regards, rocker - Altera_Forum
Honored Contributor
<div class='quotetop'>QUOTE (rocker @ Sep 5 2009, 01:23 AM) <{post_snapback}> (index.php?act=findpost&pid=23753)</div>
--- Quote Start --- <div class='quotetop'>QUOTE (hippo @ Sep 3 2009, 12:44 PM) <{post_snapback}> (index.php?act=findpost&pid=23734) --- Quote End --- --- Quote Start --- Please try change the def in uClinux-dist/user/inetd/inetd.c to higher value. # define MAX_CONNECT 8 - Hippo[/b] --- Quote End --- Thanks a lot hippo for the answer.Now I set MAX_CONNECT to 24 but I can open upto 10 session.It increased from 8 to 10 but still I can not open 12 session. Other settings are: [*] Legacy (BSD) PTY support (256) Maximum number of legacy PTY in use also I set /dev/pts to 24 count in device_tables.txt. After opening 10 sessions ,it shows "telnetd: All network ports in use". regards, rocker [/b] --- Quote End --- Problem solved.This problem happens when I choose the telnetd from network application but it does not happend with the busybox telnetd.Thanks a lot hippo.Now I can open large number of telnet sessions. I have two more questions.Please take a look it: 1.I want to run the application on telnet when user logs in successfully.I other words instead of shell prompt I want to run my own shell prompt.Can you please tell how to do this? 2. I do following settings [*] Legacy (BSD) PTY support (15) Maximum number of legacy PTY in use and /dev/pts to 15 in device_table.txt.Yet I can open more than 20 sessions.How to restrict to only 15 telnet sessions? regards, rocker - Altera_Forum
Honored Contributor
I am not very sure on this. But pty is an old method, it is static and you need to create every node. While pts is dynamic, the devpts fs creates them on the fly in /dev/pts directory. Please search to find the difference between them. I guess it should be possible to limit the number of telnet session, but I don't know how myself. The better way is to look at the source.
The login shell/program is usually defined in /etc/passwd. Please check the login utils source in busybox. - Hippo - Altera_Forum
Honored Contributor
<div class='quotetop'>QUOTE (hippo @ Sep 6 2009, 07:17 PM) <{post_snapback}> (index.php?act=findpost&pid=23766)</div>
--- Quote Start --- I am not very sure on this. But pty is an old method, it is static and you need to create every node. While pts is dynamic, the devpts fs creates them on the fly in /dev/pts directory. Please search to find the difference between them. I guess it should be possible to limit the number of telnet session, but I don't know how myself. The better way is to look at the source. The login shell/program is usually defined in /etc/passwd. Please check the login utils source in busybox. - Hippo[/b] --- Quote End --- Thanks a lot for the answer.I got the telnet login working.I will search through the code for the reason of telnet session. My last question is about SSH,like the telnet I mentioned here,I want the user to log in via SSH and the custom shell should be started on successfull login.I created the new user accound and set his shell to my custom shell.But SSH does not allow the user to login.If I set the user to default shell ,SSH allows the user to login but it does not allow to custom shell login.I got the custom shell working on telnet. Can you please give some suggestion? regards, rocker