[1847] in Kerberos-V5-bugs
k5: ksu
daemon@ATHENA.MIT.EDU (Richard Basch)
Wed Mar 27 16:02:36 1996
Date: Wed, 27 Mar 1996 16:01:29 -0500
To: krb5-bugs@MIT.EDU
From: "Richard Basch" <basch@lehman.com>
This fails:
> kinit basch
...
> ksu
Password for basch/root...
> ksu
basch does not have correct permissions for /tmp/krb5cc_2782.2
Basically, my credentials file changed ownership to root...
Here is a patch (however, I have not audited it to make sure it is the
best patch, but it is certainly a valid patch):
--- 1.1 1996/03/15 06:08:34
+++ src/clients/ksu/main.c 1996/03/27 20:32:28
@@ -578,6 +578,12 @@
auth_val = krb5_auth_check(ksu_context, client, localhostname, &options,
target_user,cc_target, &path_passwd);
+ if (chown(cc_source_tag_tmp, source_uid, source_gid)){
+ com_err(prog_name, errno,
+ "while changing owner for %s",
+ cc_source_tag_tmp);
+ exit(1);
+ }
/* if kerbereros authentication failed then exit */
if (auth_val ==FALSE){
Richard Basch
Sr. Developer/Analyst URL: http://web.mit.edu/basch/www/home.html
Lehman Brothers, Inc. Email: basch@lehman.com, basch@mit.edu
101 Hudson St., 33rd Floor Fax: +1-201-524-5828
Jersey City, NJ 07302-3988 Voice: +1-201-524-5049