(In reply to Ludwig Nussel from comment #8) The openpty(3) code of the glibc does a chown on the resulting /dev/pts/<num> and this return with EPERM.