On Mon, 7 Jul 2008, James Youngman wrote:
> How about just comparing the GID of the other user's terminal against
> the GID of the terminal whose name would have been printed if we'd run
> "tty"?
Actually, my patch with checking terminals group against "tty" was based on
permissions of "write" and "wall" packaged in fedora 8 (and probably most of
modern linuxes):
-bash-3.2# ls -l /usr/bin/write /usr/bin/wall
-r-xr-sr-x 1 root tty 8308 paź 10 2007 /usr/bin/wall
-rwxr-sr-x 1 root tty 10056 lip 7 12:13 /usr/bin/write
Another possibility is to set same permissions on "who" as on these tools.
Regards,
--
Piotr Gackiewicz
_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils