From krb5-bugs-incoming-bounces@mit.edu Wed Jun 9 18:21:39 2004
Received: from pch.mit.edu (PCH.MIT.EDU [18.7.21.90]) by krbdev.mit.edu (8.9.3p2) with ESMTP
id SAA13003; Wed, 9 Jun 2004 18:21:39 -0400 (EDT)
Received: from pch.mit.edu (localhost [127.0.0.1])
by pch.mit.edu (8.12.8p2/8.12.8) with ESMTP id i59MLdl1007498
for <krb5-send-pr@krbdev.mit.edu>; Wed, 9 Jun 2004 18:21:39 -0400 (EDT)
Received: from pacific-carrier-annex.mit.edu (PACIFIC-CARRIER-ANNEX.MIT.EDU
[18.7.21.83])
by pch.mit.edu (8.12.8p2/8.12.8) with ESMTP id i59DXXl1021611
for <krb5-bugs-incoming@PCH.mit.edu>;
Wed, 9 Jun 2004 09:33:33 -0400 (EDT)
Received: from cirse.extra.cea.fr (cirse.extra.cea.fr [132.166.172.102])
i59DXRh3028225
for <krb5-bugs@mit.edu>; Wed, 9 Jun 2004 09:33:27 -0400 (EDT)
Received: from cincidele.saclay.cea.fr (cincidele.saclay.cea.fr
[132.166.192.111])i59DXQTA021771
for <krb5-bugs@mit.edu>; Wed, 9 Jun 2004 15:33:26 +0200 (MEST)
Received: from muguet.saclay.cea.fr (unverified) by cincidele.saclay.cea.fr
<T6a1673946584a6c06f84c@cincidele.saclay.cea.fr> for
<krb5-bugs@mit.edu>; Wed, 9 Jun 2004 15:33:26 +0200
Received: from styx.bruyeres.cea.fr (styx-e76.bruyeres.cea.fr [132.165.76.3])
i59DXQe5015601; Wed, 9 Jun 2004 15:33:26 +0200 (MEST)
Received: by styx.bruyeres.cea.fr; id PAA22488;
Wed, 9 Jun 2004 15:33:25 +0200 (MET DST)
Message-Id: <200406091333.PAA22488@styx.bruyeres.cea.fr>
Date: Wed, 9 Jun 2004 15:33:12 +0200 (MEST)
To: krb5-bugs@mit.edu
From: alexandre.schmitt@cea.fr
X-send-pr-version: 3.99
X-Mailman-Approved-At: Wed, 09 Jun 2004 18:21:35 -0400
cc: alexandre.schmitt@cea.fr
Subject: Bug with "rlogin"
X-BeenThere: krb5-bugs-incoming@mit.edu
X-Mailman-Version: 2.1
Precedence: list
Reply-To: alexandre.schmitt@cea.fr
Sender: krb5-bugs-incoming-bounces@mit.edu
Errors-To: krb5-bugs-incoming-bounces@mit.edu
System: SunOS surf 5.8 Generic_114018-01 sun4u sparc SUNW,Sun-Blade-100
Architecture: sun4
There is a problem when a user have a home-directory without "read" for "other" in UNIX right and his home-directory is on a NFS server without root access.
After a "rlogin" the user is with home = "/"
bash-2.05$ cd; ls -ld `pwd`
drwxr-s--- 23 user1 group1 4096 Jun 8 2004 /home/group1/user1
bash-2.05$ rlogin surf
No directory /home/s8/user1!
Logging in with home = "/"
Last login: Tue Jun 8 14:29:17 from :0
surf%
The problem is because of the function "chdir" in the file src/appl/bsd/login.c
When the function "chdir" is called, the program is root. The program should call "chdir" when it has the user's identity.
We have just to move the "chdir" in src/appl/bsd/login.c:
diff login.c login.c.ori
1449A1450,1457
< if (chdir(pwd->pw_dir) < 0) {
< printf("No directory %s!\n", pwd->pw_dir);
< if (chdir("/"))
< exit(0);
< pwd->pw_dir = "/";
< printf("Logging in with home = \"/\".\n");
< }
Received: from pch.mit.edu (PCH.MIT.EDU [18.7.21.90]) by krbdev.mit.edu (8.9.3p2) with ESMTP
id SAA13003; Wed, 9 Jun 2004 18:21:39 -0400 (EDT)
Received: from pch.mit.edu (localhost [127.0.0.1])
by pch.mit.edu (8.12.8p2/8.12.8) with ESMTP id i59MLdl1007498
for <krb5-send-pr@krbdev.mit.edu>; Wed, 9 Jun 2004 18:21:39 -0400 (EDT)
Received: from pacific-carrier-annex.mit.edu (PACIFIC-CARRIER-ANNEX.MIT.EDU
[18.7.21.83])
by pch.mit.edu (8.12.8p2/8.12.8) with ESMTP id i59DXXl1021611
for <krb5-bugs-incoming@PCH.mit.edu>;
Wed, 9 Jun 2004 09:33:33 -0400 (EDT)
Received: from cirse.extra.cea.fr (cirse.extra.cea.fr [132.166.172.102])
i59DXRh3028225
for <krb5-bugs@mit.edu>; Wed, 9 Jun 2004 09:33:27 -0400 (EDT)
Received: from cincidele.saclay.cea.fr (cincidele.saclay.cea.fr
[132.166.192.111])i59DXQTA021771
for <krb5-bugs@mit.edu>; Wed, 9 Jun 2004 15:33:26 +0200 (MEST)
Received: from muguet.saclay.cea.fr (unverified) by cincidele.saclay.cea.fr
<T6a1673946584a6c06f84c@cincidele.saclay.cea.fr> for
<krb5-bugs@mit.edu>; Wed, 9 Jun 2004 15:33:26 +0200
Received: from styx.bruyeres.cea.fr (styx-e76.bruyeres.cea.fr [132.165.76.3])
i59DXQe5015601; Wed, 9 Jun 2004 15:33:26 +0200 (MEST)
Received: by styx.bruyeres.cea.fr; id PAA22488;
Wed, 9 Jun 2004 15:33:25 +0200 (MET DST)
Message-Id: <200406091333.PAA22488@styx.bruyeres.cea.fr>
Date: Wed, 9 Jun 2004 15:33:12 +0200 (MEST)
To: krb5-bugs@mit.edu
From: alexandre.schmitt@cea.fr
X-send-pr-version: 3.99
X-Mailman-Approved-At: Wed, 09 Jun 2004 18:21:35 -0400
cc: alexandre.schmitt@cea.fr
Subject: Bug with "rlogin"
X-BeenThere: krb5-bugs-incoming@mit.edu
X-Mailman-Version: 2.1
Precedence: list
Reply-To: alexandre.schmitt@cea.fr
Sender: krb5-bugs-incoming-bounces@mit.edu
Errors-To: krb5-bugs-incoming-bounces@mit.edu
Show quoted text
>Submitter-Id: net
>Originator: Alexandre Schmitt
>Organization:
CEA >Originator: Alexandre Schmitt
>Organization:
Show quoted text
>Confidential: no
>Synopsis: Problem with "rlogin" if "root" can't read user's home-directory
>Severity: serious
>Priority: medium
>Category: krb5-appl
>Class: sw-bug
>Release: krb5-1.3.3
>Environment:
>Synopsis: Problem with "rlogin" if "root" can't read user's home-directory
>Severity: serious
>Priority: medium
>Category: krb5-appl
>Class: sw-bug
>Release: krb5-1.3.3
>Environment:
System: SunOS surf 5.8 Generic_114018-01 sun4u sparc SUNW,Sun-Blade-100
Architecture: sun4
Show quoted text
>Description:
There is a problem when a user have a home-directory without "read" for "other" in UNIX right and his home-directory is on a NFS server without root access.
After a "rlogin" the user is with home = "/"
Show quoted text
>How-To-Repeat:
bash-2.05$ cd; ls -ld `pwd`
drwxr-s--- 23 user1 group1 4096 Jun 8 2004 /home/group1/user1
bash-2.05$ rlogin surf
No directory /home/s8/user1!
Logging in with home = "/"
Last login: Tue Jun 8 14:29:17 from :0
surf%
Show quoted text
>Fix:
The problem is because of the function "chdir" in the file src/appl/bsd/login.c
When the function "chdir" is called, the program is root. The program should call "chdir" when it has the user's identity.
We have just to move the "chdir" in src/appl/bsd/login.c:
diff login.c login.c.ori
1449A1450,1457
Show quoted text
> if (chdir(pwd->pw_dir) < 0) {
> printf("No directory %s!\n", pwd->pw_dir);
> if (chdir("/"))
> exit(0);
> pwd->pw_dir = "/";
> printf("Logging in with home = \"/\".\n");
> }
>
1656,1662d1663> printf("No directory %s!\n", pwd->pw_dir);
> if (chdir("/"))
> exit(0);
> pwd->pw_dir = "/";
> printf("Logging in with home = \"/\".\n");
> }
>
< if (chdir(pwd->pw_dir) < 0) {
< printf("No directory %s!\n", pwd->pw_dir);
< if (chdir("/"))
< exit(0);
< pwd->pw_dir = "/";
< printf("Logging in with home = \"/\".\n");
< }