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

Re: Pam thinks I am uid=0?



Michael K. Johnson wrote:
> Martin Pool writes:
> >Jul  1 08:58:49 buffalo PAM_pwdb[17274]: (su) session opened for user root by mbp(uid=0)
> ...
> >That was what I thought was happening, but I didn't think it was
> >necessarily a good thing.
> 
> su is, of course, setuid root.
> 
> The user name that is being authenticated is root
> The uid of the process doing the authentication is 0, because su is setuid root
> The logname of the user that called su was mbp
> 
> What's wrong?  I don't see the problem here.

Its a matter of taste.  su only needs to have an effective uid of 0 to work.
The uid printed in this log message is the real uid - that of the
user/process that ran the command.


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