Venkat Reddy wrote:

Is there any way to Restrict user login to server on time.I want to give
user access from 5PM -9PM and Restrict other times.
Can  someone please help me,How to do this in Redhat and Solaris.

man login.
Some portion of man login:
[..]
      timespec    ::= â[â <day-or-hour> [â:â <day-or-hour>]* â]â
      day         ::= âmonâ | âtueâ | âwedâ | âthuâ | âfriâ | âsatâ | âsunâ
      hour        ::= â0â | â1â | ... | â23â
      hourspec    ::= <hour> | <hour> â-â <hour>
      day-or-hour ::= <day> | <hourspec>

For example, the origin [mon:tue:wed:thu:fri:8-17]tty3 means that log
in is allowed on mondays through fridays between 8:00 and 17:59 (5:59
pm) on tty3. This also shows that an hour range a-b includes all
moments between a:00 and b:59. A single hour specification (such as 10)
means the time span between 10:00 and 10:59.
[..]


Check for specific details. [Std disclaimers apply]

Cheers.
Mahantesh.
--



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to