Subject: wall(1) doesn't work from within su shells?
To: None <netbsd-help@netbsd.org>
From: Tobias Nygren <tnn@netilium.org>
List: netbsd-help
Date: 04/14/2004 02:38:31
Can someone please explain this:
Debugging wall, it seems the failing call is open() in term_chk().
Is this normal behaviour?
tnn@soyokaze:~$ uname -mvr
2.0B NetBSD 2.0B (SOYOKAZE) #0: Thu Apr 1 04:15:54 CEST 2004 root@hitomi:/gtmp/src/obj-athlon/sys/arch/i386/compile/SOYOKAZE i386
tnn@soyokaze:~$ ls -l /dev/ttyp1 /usr/bin/wall
crw--w---- 1 tnn tty 5, 1 Apr 14 02:33 /dev/ttyp1
-r-xr-sr-x 1 root tty 15926 Apr 1 06:21 /usr/bin/wall
tnn@soyokaze:~$ su - testuser
Password:
% id
uid=1005(testuser) gid=100(users) groups=100(users)
% wall
wall: /dev/ttyp1: Operation not permitted
% logout
tnn@soyokaze:~$ chmod 777 /dev/ttyp1
tnn@soyokaze:~$ su - testuser
Password:
% wall
wall: /dev/ttyp1: Operation not permitted
Thanks,
--
Tobias Nygren
tnn@netilium.org