--2WS97oupGEGbYNpW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 07, 2002 at 11:24:45AM -0700, Chen Min wrote: > This time, I print out the euid > struct passwd *epw; > epw=3D getpwuid( geteuid()); > _log_err(LOG_DEBUG," euid is %s(%d)\n",epw->pw_name,epw->pw_uid); why not just use geteuid() directly? > if (mkdir(pwd->pw_dir,0700) !=3D 0) >=20 >=20 > I found euid in both ssh and su is root.So there are two possibilities: > 1 The euid which I got is not correct > 2 mkdir permission has been affected by something else besides curre= nt > euid and uid. >=20 > Do I miss something? no euid=3D0 should work, could you try with ppp's home dir set to some other location, on a local filesystem. you mentioned that /home is AFS or something? perhaps its permission model is different. --=20 Ethan Benson http://www.alaska.net/~erbenson/ --2WS97oupGEGbYNpW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iEYEARECAAYFAj1RbNMACgkQJKx7GixEevxgDACfVgcd6NJ0pN377SP1ORczpDcP i9AAn0BGXs+Adt90z6HhiO4bBTqJL/uR =8Ss4 -----END PGP SIGNATURE----- --2WS97oupGEGbYNpW--