Hi,

V út, 23. 09. 2008 v 04:26, Yue Chen píše:
> Hi Peter
> 
> It is as followings
> 
> passwd:     compat files nis

This is wrong config for compat mode

> shadow:     compat files nis

shadow isn't using nsswitch, it's in "conjunction" with passwd backend

> group:      files nis
> 

See manpage of nsswitch.conf how compat mode should be configured. Also,
it's better to use pam_list for managing access to system.

Best regards,

Milan

> 
> > On Thu, Sep 18, 2008 at 9:36 AM, Yue Chen <[EMAIL PROTECTED]> wrote:
> >> Hi everyone
> >>
> >> I have a host installed with NIS+ client. There is a user named jsn in
> >> NIS server.  His login shell is /bin/true. So he can not log on my
> >> host by default. Now I wanna grant his access so I added following
> >> line into /etc/passwd.
> >>
> >> +jsn::::::/bin/tcsh
> >>
> >> However, sometimes he is still unable to log on my host. To debug, I
> >> wrote a test binary using getpwnam to grab the user info and then
> >> check pw->pw_shell. To my surprise, the value for pw_shell is rather
> >> unstable. Sometimes it is /bin/tcsh (login is ok), sometimes it is
> >> /bin/true (login fails).
> >>
> >> How can I dig deeper on this weird issue? This issue almost drives me 
> >> crazy.
> >
> > What does the passwd entry in your /etc/nsswitch.conf file look like?
> >
> > (Are you using compat?)
> >
> > --
> > -Peter Tribble
> > http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/
> >
> _______________________________________________
> opensolaris-discuss mailing list
> opensolaris-discuss@opensolaris.org

_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Reply via email to