Skip Menu |
 

Download (untitled) / with headers
text/plain 3.7KiB
From djm@web.us.uu.net Fri Apr 14 12:17:04 2000
Received: from MIT.EDU (SOUTH-STATION-ANNEX.MIT.EDU [18.72.1.2])
by rt-11.mit.edu (8.9.3/8.9.3) with SMTP id MAA03154
for <bugs@RT-11.MIT.EDU>; Fri, 14 Apr 2000 12:17:04 -0400 (EDT)
Received: from jenkins.web.us.uu.net by MIT.EDU with SMTP
id AA29682; Fri, 14 Apr 00 12:16:59 EDT
Received: from dagger.web.us.uu.net by jenkins.web.us.uu.net with ESMTP
(peer crosschecked as: dagger.web.us.uu.net [208.211.134.28])
id MAA11552; Fri, 14 Apr 2000 12:17:02 -0400 (EDT)
Received: by dagger.web.us.uu.net
id MAA28386; Fri, 14 Apr 2000 12:16:39 -0400
Message-Id: <MAA28386.200004141616@dagger.web.us.uu.net>
Date: Fri, 14 Apr 2000 12:16:39 -0400
From: djm@web.us.uu.net (David J. MacKenzie)
Reply-To: djm@web.us.uu.net
To: krb5-bugs@MIT.EDU
Cc: djm@web.us.uu.net
Subject: ksu is too chatty
X-Send-Pr-Version: 3.99

Show quoted text
>Number: 838
>Category: krb5-clients
>Synopsis: ksu clutters the screen
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: krb5-unassigned
>State: open
>Class: change-request
>Submitter-Id: unknown
>Arrival-Date: Fri Apr 14 12:18:00 EDT 2000
>Last-Modified:
>Originator: David MacKenzie
>Organization:
UUNET Technologies
Show quoted text
>Release: krb5-1.1.1
>Environment:

System: Linux dagger.web.us.uu.net 2.2.14-15mdk #2 Sat Mar 11 19:32:26 EST 2000 i686 unknown
Architecture: i686

Show quoted text
>Description:
When I run the stock ksu on Linux, I get 4 lines of chatty clutter
before my next prompt, whereas with the stock su I get 0.
Two of those lines are from syslog, and two are from ksu.
One of the places that chatty warning is printed, it appears
there is no way to turn it off without recompiling.
When using a 24-line terminal, losing that much space to
useless messages can scroll things I wanted to see off the screen.

Show quoted text
>How-To-Repeat:
ksu

Show quoted text
>Fix:

This makes ksu more of a drop-in replacement for the stock su.

--- /homes/elves/djm/src/krb5-1.1.1/src/clients/ksu/krb_auth_su.c Fri Dec 17 15:44:38 1999
+++ src/clients/ksu/krb_auth_su.c Tue Mar 28 02:00:41 2000
@@ -150,9 +150,10 @@
return FALSE;
}

-
+#if 0
fprintf(stderr,"WARNING: Your password may be exposed if you enter it here and are logged \n");
fprintf(stderr," in remotely using an unsecure (non-encrypted) channel. \n");
+#endif

/*get the ticket granting ticket, via passwd(promt for passwd)*/
if (krb5_get_tkt_via_passwd (context, &cc, client, tgtq.server,
--- /homes/elves/djm/src/krb5-1.1.1/src/clients/ksu/ksu.M Fri Dec 17 15:44:39 1999
+++ src/clients/ksu/ksu.M Tue Mar 28 02:02:06 2000
@@ -371,7 +377,7 @@
exclusive with '-C .' and -z options.
.TP 10
\fB\-q
-suppress the printing of status messages.
+do not suppress the printing of status messages.
.TP 10
\fB\-e \fIcommand [args ...]
ksu proceeds exactly the same as if it was invoked without the
--- /homes/elves/djm/src/krb5-1.1.1/src/clients/ksu/main.c Fri Dec 17 15:44:39 1999
+++ src/clients/ksu/main.c Tue Mar 28 02:05:48 2000
@@ -37,7 +37,7 @@
char k5login_path[MAXPATHLEN];
char k5users_path[MAXPATHLEN];
char * gb_err = NULL;
-int quiet = 0;
+int quiet = 1;
/***********/

#define _DEF_CSH "/bin/csh"
@@ -208,7 +209,7 @@
keep_target_cache =1;
break;
case 'q':
- quiet =1;
+ quiet =0;
break;
case 'l':
if (strlen (optarg) >= 14)
@@ -532,8 +560,10 @@
exit(1);
}

+ if (!quiet) {
fprintf(stderr,"WARNING: Your password may be exposed if you enter it here and are logged\n");
fprintf(stderr," in remotely using an unsecure (non-encrypted) channel.\n");
+ }
if (krb5_get_tkt_via_passwd (ksu_context, &cc_target, client,
kdc_server, &options,
&zero_password) == FALSE){
Show quoted text
>Audit-Trail:
>Unformatted: