Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Jun 1998 14:27:25 +1000 (EST)
From:      "Brian O'Connor" <boc@ironbark.bendigo.latrobe.edu.au>
To:        freebsd-questions@FreeBSD.ORG
Subject:   what happens to daemon processes when password file is zeroed
Message-ID:  <199806050427.OAA05884@ironbark.bendigo.latrobe.edu.au>

next in thread | raw e-mail | index | archive | help
Hello,
      I have an aversion to NIS, and am trying to roll my own with
ssh and other such tools. I have already had the delightfull experience of
deleting the password file(I got my + < and > the wrong way around in perl).
It occured to me that if the password file was deleted, or of zero length
how do running daemons handle permissions? ie, processes seemed to continue
to run, I just couldn't log in. 

What I want to try is to write a daemon that checks to see if the passwd
file exists, and is of non zero size(i could put other tests here, but this
will do for a start). If this test fails, it copies a fail safe copy over
and then reports the error, of course this will fail if the daemon does
not have permission to write to /etc (since there is no user root)

I suspect I'll have to try it and see.


boc
-- 

                   Brian O'Connor, Unix Systems Consultant
      La Trobe University,Bendigo,Australia; b.oconnor@latrobe.edu.au
           http://ironbark.bendigo.latrobe.edu.au/~boc/resume.html

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806050427.OAA05884>