Why does rsh fail with this error message? "rcmd: socket: Permission denied" Assuming the r-command files have been setup correctly, this error message is caused when the file privileges for rsh (remote shell) are missing. The error message most users see is the following. $ rsh jester who rcmd: socket: Permission denied The root user will see just see this. # rsh jester who Permission denied. To test if file privileges are missing run filepriv on rsh. # filepriv /usr/bin/rsh # The normal privileges for rsh are the following. # filepriv /usr/bin/rsh fixed dev,filesys,driver To restore the file privileges on remote shell(rsh) run the following as root. # filepriv -f dev,filesys,driver /usr/bin/rsh For more information see filepriv(1), faq "How do I restore file privileges?".