rsetup

Command

rsetup manages user name and password entries
in the 7/2008R2/8/2012/10/2016 LSA database.
When the -uusername option is specified,
entries for the specified user name are managed; otherwise,
rsetup manages entries for the current user.
These database entries are for use by the rshd service and
must exist for each user that is to be the target of
rsh, rlogin, or rcp
requests.

You can add, delete, and query entries in the database.
When neither the -d (delete) nor -q (query)
options are specified, rsetup adds an entry for the user
specified by the -u or the current user.
The user name and password is verified when adding and deleting
entries.

Using rsetup to access the LSA database requires
advanced privileges and permissions.
If you do not have such privileges, rsetup attempts
to use a service to gain access.
First, rsetup tries accessing the database with
rshd.
If this fails (for example, rshd is not locally installed
and running), rsetup then tries accessing the database
with mksauth.