Re: [osol-discuss] How to debug a weird nis+ issue?

2008-09-23 Thread Milan Jurik
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

Re: [osol-discuss] How to debug a weird nis+ issue?

2008-09-23 Thread Peter Tribble
On Tue, Sep 23, 2008 at 3:26 AM, Yue Chen [EMAIL PROTECTED] wrote:
 Hi Peter

 It is as followings

 passwd: compat files nis
 shadow: compat files nis
 group:  files nis

That doesn't look at all right. You don't need a shadow entry, and the passwd
configuration for compat mode should be like:

passwd_compat: nis
passwd: compat

 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/





-- 
-Peter Tribble
http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] How to debug a weird nis+ issue?

2008-09-22 Thread Yue Chen
Hi Peter

It is as followings

passwd: compat files nis
shadow: compat files nis
group:  files nis


 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


Re: [osol-discuss] How to debug a weird nis+ issue?

2008-09-19 Thread Peter Tribble
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


[osol-discuss] How to debug a weird nis+ issue?

2008-09-18 Thread Yue Chen
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.
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org