[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: pam_mkhomedir doesn't work for su?



On Wed, Aug 07, 2002 at 11:24:45AM -0700, Chen Min wrote:
> This time, I print out the euid
>    struct passwd *epw;
>    epw= 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) != 0)
> 
> 
>  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 current
> euid and uid.
> 
>  Do I miss something?

no euid=0 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.

-- 
Ethan Benson
http://www.alaska.net/~erbenson/

Attachment: pgp00004.pgp
Description: PGP signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []