[Bug 2872] wall command shows error when logged in through non-root user.

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Fri Jun 1 13:52:09 AEST 2018


--- Comment #1 from Darren Tucker <dtucker at dtucker.net> ---
(In reply to Mayank Sharma from comment #0)
> If I changed modes permission from 600 to 620 and run the same wall
> command, then in such case it was not throwing any error message.

That implies that /usr/sbin/wall is setgid?  If so wha are the
permissions on /usr/sbin/wall and the pts devices?

On my (admittedly obsolete) AIX 5.1 system wall is not setgid, although
it's possible I changed it some time in the past:

$ ls -l /usr/sbin/wall
-r-xr-xr-x   1 bin      bin           12720 Jan 15 2003  /usr/sbin/wall
$ ls -l /dev/pts/{0,100}
crw-------   1 dtucker  system       28,  0 Jun 01 13:41 /dev/pts/0
crw-rw-rw-   1 root     system       28,100 Jul 03 2003  /dev/pts/100

> Therefore , i would like to know whether these mode changes are made
> intentionally or it is possible to rectify it ?

Restricting the permissions was deliberate.  If there's a specific
group that's the equivalent of "tty" on AIX then we could potentially
use that and end up with mode 0620 pty devices.

You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.

More information about the openssh-bugs mailing list