diff options
author | wosch <wosch@FreeBSD.org> | 1997-07-18 21:04:19 +0000 |
---|---|---|
committer | wosch <wosch@FreeBSD.org> | 1997-07-18 21:04:19 +0000 |
commit | 6c57ae296c86a1387b2a8bf05ccd6e17dfb792b2 (patch) | |
tree | 9ec5786efbf6f61e7201a2a81c3753f9da34efbb | |
parent | ecd0abeac821275ea4abe5bc5cb9588170ce2dfd (diff) | |
download | FreeBSD-src-6c57ae296c86a1387b2a8bf05ccd6e17dfb792b2.zip FreeBSD-src-6c57ae296c86a1387b2a8bf05ccd6e17dfb792b2.tar.gz |
Rshd print to much information if a user does not exists.
-rw-r--r-- | libexec/rshd/rshd.8 | 7 | ||||
-rw-r--r-- | libexec/rshd/rshd.c | 8 |
2 files changed, 7 insertions, 8 deletions
diff --git a/libexec/rshd/rshd.8 b/libexec/rshd/rshd.8 index 4925a9c..1f2ae32 100644 --- a/libexec/rshd/rshd.8 +++ b/libexec/rshd/rshd.8 @@ -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. diff --git a/libexec/rshd/rshd.c b/libexec/rshd/rshd.c index a4080b6..dbb1351 100644 --- a/libexec/rshd/rshd.c +++ b/libexec/rshd/rshd.c @@ -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 @@ fail: "%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))) { |