[2627] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

krb5-clients/338: krb5-clients

daemon@ATHENA.MIT.EDU (jay@gambit.ess.harris.com)
Mon Jan 13 13:03:01 1997

Resent-From: gnats@rt-11.MIT.EDU (GNATS Management)
Resent-To: krb5-unassigned@RT-11.MIT.EDU
Resent-Reply-To: krb5-bugs@MIT.EDU, jay@gambit.ess.harris.com
Date: Mon, 13 Jan 1997 12:59:55 -0500 (EST)
From: jay@gambit.ess.harris.com
Reply-To: jay@gambit.ess.harris.com
To: krb5-bugs@MIT.EDU


>Number:         338
>Category:       krb5-clients
>Synopsis:       ksu fails to swith to root.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    krb5-unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   unknown
>Arrival-Date:   Mon Jan 13 13:01:01 EST 1997
>Last-Modified:
>Originator:     Jay Claybaugh
>Organization:
__________________________________________________________________________

 Jay Claybaugh                   | EMAIL:  jay@gambit.ess.harris.com
 Harris Corporation, MS 5/5870   |
 PO Box 91000, Melbourne, FL     | PHONE:  (407) 729-7492
                 32902           | FAX:    (407) 729-7273
__________________________________________________________________________
>Release:        1.0
>Environment:
	
System: SunOS gambit 5.5 Generic sun4m sparc SUNW,SPARCstation-5
Architecture: sun4

>Description:
	Invoking "ksu" to switch to root fails with error message:
		 ksu: Not owner while selecting the best principal.
	Lines #738-741 in src/clients/ksu/main.c are currently:
__________________________________________________________________________
      /* insist that the target login uses a standard shell (root is omited) */ 

       if (!standard_shell(target_pwd->pw_shell) && source_uid) {
	       fprintf(stderr, "ksu: permission denied (shell).\n");
__________________________________________________________________________

	I believe the "!" character is missing to make the source code match
	the comment as in the following:
__________________________________________________________________________
      /* insist that the target login uses a standard shell (root is omited) */ 

       if (!standard_shell(target_pwd->pw_shell) && !source_uid) {
	       fprintf(stderr, "ksu: permission denied (shell).\n");
__________________________________________________________________________

	
>How-To-Repeat:
	At prompt, type:  ksu
>Fix:
	Insert "!" character in line #740 as noted above.
>Audit-Trail:
>Unformatted:

home help back first fref pref prev next nref lref last post