mountcommand on a GNU/Linux system, you will see an entry similar to the following:
devpts on /dev/pts type devpts
Debian creates that mount via the following script:
Other GNU/Linux distributions might choose to have entries in
/etc/fstabto create that devpts mount.
Package to reinstall if devpts is not working as it should:
The package initscripts contains the necessary files as shown below:
...and for non 64 bit PC systems...
The above shows an extract of the file listings (A-R), that includes, the file we are interested in, for this article.
I have shown the amd64 & i386 file listings for comparison, and to satisfy myself that there are, no immediately obvious differences (A-R)
For Debian, some of the mount options for devpts can be altered by changing files in /etc/default:
...and 686 / 386 version ...
Here are the permissions for those /dev/ entries of interest on my system:
Sometimes working in a chroot environment can throw up problems with devpts, and the article here, gives an example & possible solution.
Notes and Further Reading:
- Linux Tip - Getting rid of Common Errors in Chroot mode
[ linux.koolsolutions.com ]
- Other computer systems might prefer a default of mode=600 rather than mode=620 when mounting
[ forum.samdroid.net ]
- Really old historical bug filed against Red Hat, that was fixed years ago, but provides a warning about having mode=622, or anything too permissive
[ securityfocus.com ]
- SSH and UsePrivilegeSeparation and Chroot - deciding on appropriate devpts
[ chains.ch ]
- Arch Linux and devpts definition in /etc/fstab
[ linuxquestions.org ]
- Arch Linux discussion about /etc/fstab and inittab [ bbs.archlinux.org ]
The retro style font shown in the screenshots of my terminal, can be obtained on Debian using:
apt-get install xfonts-terminus xfonts-terminus-oblique