Symptoms
When a user opens the Terminal application in cPanel, they see the warning:
mesg: error: tty device is not owned by group `tty'.
Description
If a system doesn't have the default "/dev/pts" options mounted, it can cause an error when opening a shell session from cPanel's Terminal feature.
For example, the below "grep" search command would return an empty result if the mount causing the issue exists.
grep gid=5 /proc/mounts
The tty gid option is missing, but it is enabled by default. It would be best to further discuss with a certified administrator how this default option was changed as the cPanel software doesn't modify the pts mount point.
Workaround
Note: Please be sure to consult with a certified administrator before performing remount commands to ensure it doesn't cause conflicts in the affected environment.
Remount pts to include the option "gid" for the tty system group.
Note: tty gid is 5. The below command will set the default options normally found on a cPanel server.
mount /dev/pts -o remount,rw,relatime,gid=5,mode=620,ptmxmode=000