On Fri, Dec 07, 2001 at 10:00:39AM -0800, Naren Devaiah wrote:
> Except that a knowledgeable user will comment out the line 
> from the .bash_profile or .profile and no longer have this 
> restriction!
>

Very good point ...  did'nt give this a  thought  though. I
was also  thinking in terms of checking for "time-up" warn-
ing set through "at" command ... I frankly admit, that your 
approach makes much more sense, and easier to handle
  
> A better approach is to write a script that looks up the user and his/her
> information from a configuration file and decides on whether the user is
> allows or not allowed to logon.
> 
> This script can then be used as the shell in the /etc/passwd file.
> 
> Something like this...(this is pseudocode..)
> 
> #! /bin/bash
> if (/sbin/scripts/checkusr) then
>       exec /bin/bash
> else
>       echo "Not allowed to login at this time"
>       exec /bin/false
> endif
> 
> # /sbin/scripts/checkusr is the script you need to write to check if the
> # if the currently logged in user is allowed to login at this time.
> # Return true if user is allowed to login. Return false otherwise
> 
> -Naren
> 


--
:
####[ Linux One Stanza Tip (LOST) ]###########################
  
Sub : Are your X paramaters correct ?                LOST #181

In case not, you may face situations where  either  the screen
does not fit properly, or there is flicker or snow. Under such
conditions probe for the actual parameters for your card using
"xvidtune" utility, in the  [auto] mode ...  Try output values
as Modeline in the Monitor section of XF86Config file.
                                                                 
####<[EMAIL PROTECTED]>################################
:

_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to