Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!ukma!rutgers!att!cbnewsh!ijk From: ijk@cbnewsh.att.com (ihor.j.kinal) Newsgroups: comp.unix.wizards Subject: Re: time dependent login Summary: No Home Directory Message-ID: <1990May29.194446.12623@cbnewsh.att.com> Date: 29 May 90 19:44:46 GMT References: <979@sixhub.UUCP> <1990May28.200520.20288@cbnews.att.com> Distribution: na Organization: AT&T Bell Laboratories Lines: 19 > In article <979@sixhub.UUCP> davidsen@sixhub.UUCP (bill davidsen) writes: > I want to enable login to a certain userid only during certain times. >Assume that cron can run a program to enable or disable, and that I can >do this as root if need be. Given that, is there an elegant way to >enable a login only during certain times, and to do so in a way which >doesn't lead to possible timing problems or other system uglyness, such >as editing the password file directly? I would consider making the permissions of the user's home directory as 000 - this should prevent the user from logging in; if not, then mv the dir to a holding area. If you don't have a home directory, then you can't log in, at least on all the systems I've worked with. [All non-BSD, but I imagine that they should be the same]. #include standard disclaimers. Ihor Kinal att!cbnewsh!ijk