pam_mkhomedir doesn't work for su?

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

 




> -----Original Message-----
> From: pam-list-admin@redhat.com [mailto:pam-list-admin@redhat.com]On
> Behalf Of Ethan Benson
> Sent: Wednesday, August 07, 2002 11:54 AM
> To: pam-list@redhat.com
> Subject: 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?

Actually, I did. but I got

Aug  7 10:11:30 Whisper PAM-mkhomedir[1538]:  euid is 1108038676

>
> >    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.
>

I am pretty sure /home is local file system.

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





[Index of Archives]     [Fedora Users]     [Kernel]     [Red Hat Install]     [Linux for the blind]     [Gimp]

  Powered by Linux