|
Hopefully, this page is exactly what you are looking for, but if not, you can always find further assistance on Unix/Linux Forum!
System Administration Commands rsh(1M)
NAME
rsh, restricted_shell - restricted shell command interpreter
SYNOPSIS
/usr/lib/rsh [-acefhiknprstuvx] [argument...]
DESCRIPTION
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).
When the shell is invoked, it scans the environment for the
value of the environmental variable, SHELL. If it is found
and rsh is the file name part of its value, the shell
becomes a restricted shell.
The actions of rsh are identical to those of sh, except that
the following are disallowed:
o changing directory (see cd(1)),
o setting the value of $PATH,
o pecifying path or command names containing /,
o redirecting output (> and >>).
The restrictions above are enforced after .profile is inter-
preted.
A restricted shell can be invoked in one of the following
ways:
1. rsh is the file name part of the last entry in the
/etc/passwd file (see passwd(4));
2. the environment variable SHELL exists and rsh is the
file name part of its value; the environment variable
SHELL needs to be set in the .login file;
3. the shell is invoked and rsh is the file name part of
argument 0;
4. the shell is invoke with the -r option.
When a command to be executed is found to be a shell pro-
cedure, rsh invokes sh to execute it. Thus, it is possible
SunOS 5.10 Last change: 1 Nov 1993 1
System Administration Commands rsh(1M)
to provide to the end-user shell procedures that have
access to the full power of the standard shell, while impos-
ing a limited menu of commands; this scheme assumes that the
end-user does not have write and execute permissions in the
same directory.
The net effect of these rules is that the writer of the
.profile (see profile(4)) has complete control over user
actions by performing guaranteed setup actions and leaving
the user in an appropriate directory (probably not the login
directory).
The system administrator often sets up a directory of com-
mands (that is, /usr/rbin) that can be safely invoked by a
restricted shell. Some systems also provide a restricted
editor, red.
EXIT STATUS
Errors detected by the shell, such as syntax errors, cause
the shell to return a non-zero exit status. If the shell is
being used non-interactively execution of the shell file is
abandoned. Otherwise, the shell returns the exit status of
the last command executed.
ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Availability | SUNWcsu |
|_____________________________|_____________________________|
SEE ALSO
intro(1), cd(1), login(1), rsh(1), sh(1), exec(2),
passwd(4), profile(4), attributes(5)
NOTES
The restricted shell, /usr/lib/rsh, should not be confused
with the remote shell, /usr/bin/rsh, which is documented in
rsh(1).
SunOS 5.10 Last change: 1 Nov 1993 2
Man(1) output converted with
man2html and wrapped by fishsponge
This page was generated on Wed Sep 12 11:26:32 GMT 2007
|
Your favourite pages:
No pages logged yet. Trying to save cookie... Top 10 most popular pages:
sqlite3 man page (5334 hits) (openSUSE 10.2)
svn man page (5209 hits) (FreeBSD 6.2)
adv_cap_autoneg man page (4870 hits) (Solaris 10 11_06)
CPAN man page (4607 hits) (Suse Linux 10.1)
ssh man page (4342 hits) (Suse Linux 10.1)
ssh-socks5-proxy-connect man page (2884 hits) (Solaris 10 11_06)
netcat man page (2717 hits) (Suse Linux 10.1)
pprosetup man page (2492 hits) (Solaris 10 11_06)
startproc man page (2471 hits) (Suse Linux 10.1)
signal man page (2408 hits) (Suse Linux 10.1)
|