change passwd - permission denied (NIS)

  • Follow


This may help someone someday.

I setup a new NIS server and put the NIS source files in /etc/nis/

Everything seemed to work with /var/yp/ and make and evening within
Webmin, but the command line "passwd" gave me a permission denied when
changing an NIS user's password.

Using this:
passwd -r nis userid
new passwd
verified

I received a... "permission denied" response.

Even yppasswd didn't work.

The yppasswd process was running too.

Eventually I restarted NIS with /usr/lib/netsvc/yp/ypstop (then
ypstart).

All was well after that.  I don't really know why, other than I hadn't
restarted NIS after moving the source files from /etc/ to /etc/nis/
and making the necessary changes in /var/yp/Makefile.

Chris
0
Reply ChrisS 12/21/2007 5:08:24 PM

ChrisS wrote:
> This may help someone someday.
> 
> I setup a new NIS server and put the NIS source files in /etc/nis/
> 
> Everything seemed to work with /var/yp/ and make and evening within
> Webmin, but the command line "passwd" gave me a permission denied when
> changing an NIS user's password.
> 
> Using this:
> passwd -r nis userid
> new passwd
> verified
> 
> I received a... "permission denied" response.
> 
> Even yppasswd didn't work.
> 
> The yppasswd process was running too.
> 
> Eventually I restarted NIS with /usr/lib/netsvc/yp/ypstop (then
> ypstart).
> 
> All was well after that.  I don't really know why, other than I hadn't
> restarted NIS after moving the source files from /etc/ to /etc/nis/
> and making the necessary changes in /var/yp/Makefile.
> 
> Chris

Did you really expect it to notice all the changes without any help from 
you?  Programs tend to cache stuff rather than reading it from disk each 
time it is needed.  ISTR something about "kill -1" restarting a program 
so that it will reread its configuration files.  My memory grows DIMM 
:-) so  don't take my word for it; go thou and RTFM.


0
Reply Richard 12/21/2007 5:16:11 PM


pkill -HUP nis/server

--ron

Richard B. Gilbert wrote:
> ChrisS wrote:
>> This may help someone someday.
>>
>> I setup a new NIS server and put the NIS source files in /etc/nis/
>>
>> Everything seemed to work with /var/yp/ and make and evening within
>> Webmin, but the command line "passwd" gave me a permission denied when
>> changing an NIS user's password.
>>
>> Using this:
>> passwd -r nis userid
>> new passwd
>> verified
>>
>> I received a... "permission denied" response.
>>
>> Even yppasswd didn't work.
>>
>> The yppasswd process was running too.
>>
>> Eventually I restarted NIS with /usr/lib/netsvc/yp/ypstop (then
>> ypstart).
>>
>> All was well after that.  I don't really know why, other than I hadn't
>> restarted NIS after moving the source files from /etc/ to /etc/nis/
>> and making the necessary changes in /var/yp/Makefile.
>>
>> Chris
> 
> Did you really expect it to notice all the changes without any help from 
> you?  Programs tend to cache stuff rather than reading it from disk each 
> time it is needed.  ISTR something about "kill -1" restarting a program 
> so that it will reread its configuration files.  My memory grows DIMM 
> :-) so  don't take my word for it; go thou and RTFM.
> 
> 
0
Reply Ron 12/22/2007 8:13:20 PM

Forget the last post. Use:
svcadm restart nis/server

--ron

Richard B. Gilbert wrote:
> ChrisS wrote:
>> This may help someone someday.
>>
>> I setup a new NIS server and put the NIS source files in /etc/nis/
>>
>> Everything seemed to work with /var/yp/ and make and evening within
>> Webmin, but the command line "passwd" gave me a permission denied when
>> changing an NIS user's password.
>>
>> Using this:
>> passwd -r nis userid
>> new passwd
>> verified
>>
>> I received a... "permission denied" response.
>>
>> Even yppasswd didn't work.
>>
>> The yppasswd process was running too.
>>
>> Eventually I restarted NIS with /usr/lib/netsvc/yp/ypstop (then
>> ypstart).
>>
>> All was well after that.  I don't really know why, other than I hadn't
>> restarted NIS after moving the source files from /etc/ to /etc/nis/
>> and making the necessary changes in /var/yp/Makefile.
>>
>> Chris
> 
> Did you really expect it to notice all the changes without any help from 
> you?  Programs tend to cache stuff rather than reading it from disk each 
> time it is needed.  ISTR something about "kill -1" restarting a program 
> so that it will reread its configuration files.  My memory grows DIMM 
> :-) so  don't take my word for it; go thou and RTFM.
> 
> 
0
Reply Ron 12/22/2007 8:14:17 PM

On Dec 22 2007, 3:14 pm, Ron Halstead <rdhalst...@gmail.com> wrote:
> Forget the last post. Use:
> svcadm restart nis/server
>
> --ron
>
> Richard B. Gilbert wrote:
> > ChrisS wrote:
> >> This may help someone someday.
>
> >> I setup a new NIS server and put the NIS source files in /etc/nis/
>
> >> Everything seemed to work with /var/yp/ and make and evening within
> >> Webmin, but the command line "passwd" gave me a permission denied when
> >> changing an NIS user's password.
>
> >> Using this:
> >> passwd -r nis userid
> >> new passwd
> >> verified
>
> >> I received a... "permission denied" response.
>
> >> Even yppasswd didn't work.
>
> >> The yppasswd process was running too.
>
> >> Eventually I restarted NIS with /usr/lib/netsvc/yp/ypstop (then
> >> ypstart).
>
> >> All was well after that.  I don't really know why, other than I hadn't
> >> restarted NIS after moving the source files from /etc/ to /etc/nis/
> >> and making the necessary changes in /var/yp/Makefile.
>
> >> Chris
>
> > Did you really expect it to notice all the changes without any help from
> > you?  Programs tend to cache stuff rather than reading it from disk each
> > time it is needed.  ISTR something about "kill -1" restarting a program
> > so that it will reread its configuration files.  My memory grows DIMM
> > :-) so  don't take my word for it; go thou and RTFM.

Thanks Ron for the positive information.  Good to see some group
members still enjoy sharing their ideas and technical knowledge with
others.

Chris
0
Reply ChrisS 1/3/2008 10:43:42 PM

4 Replies
1083 Views

(page loaded in 0.06 seconds)

Similiar Articles:













7/19/2012 4:46:36 PM


Reply: