[SunHELP] Permissions on /usr/lib/rsh
Chris Hall
chall at verio.net
Tue Dec 10 15:51:05 CST 2002
Is this normal behavior ?
# echo $SHELL
/sbin/sh
# uname -a
SunOS host0.mydomain.com 5.8 Generic_108528-13 sun4u sparc SUNW,UltraSPARC-IIi-Engine
# hostname
host0.mydomain.com
# ls -al /usr/lib/rsh
-r-xr-xr-x 4 root root 95316 Mar 12 2002 /usr/lib/rsh
# chmod 000 /usr/lib/rsh
# ls -al /usr/lib/rsh
---------- 4 root root 95316 Mar 12 2002 /usr/lib/rsh
# clear
/bin/clear: Permission denied.
# hostname
/bin/hostname: Permission denied.
# /usr/bin/bash
bash-2.03# hostname
bash: /usr/bin/hostname: Permission denied
bash-2.03# clear
bash: /usr/bin/clear: Permission denied
bash-2.03# ls -al /usr/bin/clear /usr/bin/hostname /bin/hostname
-r-xr-xr-x 1 root bin 525 Jan 5 2000 /bin/hostname
-r-xr-xr-x 1 root bin 647 Jan 5 2000 /usr/bin/clear
-r-xr-xr-x 1 root bin 525 Jan 5 2000 /usr/bin/hostname
bash-2.03# /usr/bin/clear
bash: /usr/bin/clear: Permission denied
bash-2.03# exit
# chmod 555 /usr/lib/rsh
# hostname
host0.mydomain.com
#
tcsh does the same thing.
Man pages:
rsh rsh (1) - remote shell
rsh rsh (1m) - restricted shell command interpreter
--
Thanks,
- Chris Hall
"The growing use of e-mail, not to mention Web-page publishing, threatens
to reverse the trend towards illiteracy among the supposedly educated without,
at the same time improving their spelling".
-- Michael Swaine, Dr. Dobb's Journal
More information about the SunHELP
mailing list