Rshd print to much information if a user does not exists.

This commit is contained in:
Wolfram Schneider 1997-07-18 21:04:19 +00:00
parent 478f9549f4
commit 506a9d513c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=27516
2 changed files with 7 additions and 8 deletions

View File

@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)rshd.8 8.1 (Berkeley) 6/4/93
.\" $Id: rshd.8,v 1.7 1997/02/22 14:22:22 peter Exp $
.\" $Id: rshd.8,v 1.8 1997/04/23 03:06:47 davidn Exp $
.\"
.Dd June 4, 1993
.Dt RSHD 8
@ -180,13 +180,12 @@ longer than 16 characters.
The command line passed exceeds the size of the argument
list (as configured into the system).
.It Sy Login incorrect.
No password file entry for the user name existed.
No password file entry for the user name existed
or the authentication procedure described above failed.
.It Sy Remote directory.
The
.Xr chdir
command to the home directory failed.
.It Sy Permission denied.
The authentication procedure described above failed.
.It Sy Logins not available right now.
Rsh was attempted outside the allowed hours defined in
login.conf for the local user's login class.

View File

@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: rshd.c,v 1.16 1997/04/23 03:06:47 davidn Exp $
* $Id: rshd.c,v 1.17 1997/05/10 19:02:03 davidn Exp $
*/
#ifndef lint
@ -480,7 +480,7 @@ doit(fromp)
syslog(LOG_INFO|LOG_AUTH,
"Kerberos rsh denied to %s.%s@%s",
kdata->pname, kdata->pinst, kdata->prealm);
error("Permission denied.\n");
error("Login incorrect.\n");
exit(1);
}
}
@ -503,7 +503,7 @@ doit(fromp)
remuser, hostname, locuser, cmdbuf);
fail:
if (errorstr == NULL)
errorstr = "Permission denied.\n";
errorstr = "Login incorrect.\n";
error(errorstr, errorhost);
exit(1);
}
@ -524,7 +524,7 @@ doit(fromp)
"%s@%s as %s: permission denied (%s). cmd='%.80s'",
remuser, hostname, locuser, __rcmd_errstr,
cmdbuf);
error("Permission denied.\n");
error("Login incorrect.\n");
exit(1);
}
if (!auth_timeok(lc, time(NULL))) {