Operating System - HP-UX
1833847 Members
2092 Online
110063 Solutions
New Discussion

Non pseudo devices being world writeable and world readable

 
SOLVED
Go to solution
Janice Bradford
Occasional Contributor

Non pseudo devices being world writeable and world readable

Hi....
Can anyone point to documentation or tell me if the non-console pseudo terminal device "permissions" HAVE to be set to be world readable and/or writable? I cannot find any documentation on this. Thanks in advance.

JB
Sr. Unix Admin
3 REPLIES 3
Patrice Le Guyader
Respected Contributor

Re: Non pseudo devices being world writeable and world readable

Demat Janice,

It seems to be normal, I've looked on a new server and they are owned by root root and with rights to 0666.

hope this helps
Kenavo
pat
Good judgement comes with experience. Unfortunately, the experience usually comes from bad judgement.
Bill Hassell
Honored Contributor
Solution

Re: Non pseudo devices being world writeable and world readable

Unused pty's are set to 666 since any incoming user needs access. Once a daemon (like telnetd or sshd) is attached to a pty, the permissions are usually changed. World readable and writable for an unused pty is fine as it points to nothing so sending or reading data to these device files does nothing. Once the device file is in use, it is protected.


Bill Hassell, sysadmin
Janice Bradford
Occasional Contributor

Re: Non pseudo devices being world writeable and world readable

Thank you for the responses and confirmation.