[1189] in Athena Bugs

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

6.0C/R: login

daemon@ATHENA.MIT.EDU (probe@ATHENA.MIT.EDU)
Tue Oct 18 13:13:34 1988

From: <probe@ATHENA.MIT.EDU>
Date: Tue, 18 Oct 88 13:13:10 EDT
To: bugs@ATHENA.MIT.EDU
Reply-To: Richard Basch   <probe@ATHENA.MIT.EDU>

Why is there the following in attach_homedir() in
/source/4.3/bin/login/login.c?

      if (status.w_retcode == ATTACH_OK ||
          status.w_retcode == ATTACH_ERR_ATTACHED) {
              chown(pwd->pw_dir, pwd->pw_uid, pwd->pw_gid);
              chdir(pwd->pw_dir);
              return (0);
      }


The mount-point will assume whatever uid/gid it is on the server.  There
is no need (and in fact it will fail) trying to chown the directory.

-Richard

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