Editing
FreeBSD Reference
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
= pty problems = Not a problem after 4.x Each jail system, and each customer system on each jail, has 256 /dev/ptyXX files on it. This is because each login on the underlying system, even if it is a customer logging into their jail, takes up a pty. So, the underlying system needs to have the maximum number of ptys it can (256). You might think that no jail user would ever use more than the default number of ptys, which is 32, so why do we up the number of pty /dev nodes in each jailed system as well ? The reason is that the device node used for each login starts at zero, and increments for _every_ login on the machine, whether it is a login by a customer or a login to the underlying machine. So, the very first login session a customer might initiate could be using /dev/pty54, not just /dev/pty1. This issue should never come up - you just need to make sure FreeBSD filesystem images are created with all 256 ptys. However, if a customer ever complains that they cannot log in, and get some kind of "no more ptys" or "out of ptys" errors, you need to go to that machine, and make sure there are 256 ptys in the underlying /dev, _and_ that there are 256 ptys in the jailed /dev. If there are not, go to the dev directory in question and run: <pre>/bin/sh for i in 1 2 3 4 5 6 7 ; do sh MAKEDEV pty$i ; done</pre> This will never come up if the dump-files you use with jailmake are made properly - the only other reason it could come up is if a customer accidently deletes his /dev/pty nodes, which has never happened.
Summary:
Please note that all contributions to JCWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
JCWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information