rsh is a limiting version of the standard command inter-
preter sh, used to restrict logins to execution environments
whose capabilities are more controlled than those of sh (see
sh(1) for complete description and usage).
The actions of rsh are identical to those of sh, except that
the following are disallowed:
changing directory (see cd(1)),
setting the value of $PATH,
pecifying path or command names containing /,
redirecting output (> and >>).
Set restricted shell as login shell
Solaris:
usermod -s /usr/lib/rsh userid
Linux:
usermod -s /usr/bin/rbash userid
Set minimum number of days between password changes to large number, so user can’t change password until min days
Solaris:
passwd -n 9999 –x 9998 userid
(Solaris needs to set both Min Max days and Min is greater than Max)
Linux:
passwd –n 9999 userid
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.