Kay-Uwe Kasemir wrote:
>
> At 12:16 PM 4/11/2002, Andrew Johnson wrote:
> >I use that here at APS to output the long DOE "you must be
> >authorized to use this machine" message before prompting for the username
> >and password.
>
> A documented alternative to that might be:
>
> loginStringSet("login (you must be authorized to use this machine): ")
.. which is fine if your message is short, but doesn't work if it's more
than a line or so (I forget the limit, but it's too small for DoE). I
omitted this definition from my example (yuck):
static const char* doe_msg = "\t\t\tNOTICE TO USERS\n\n"
"This is a Federal computer system and is the property of the
United\n"
"States Government. It is for authorized use only. Users
(authorized\n"
"or unauthorized) have no explicit or implicit expectation of
privacy.\n"
"Any or all uses of this system and all files on this system may be\n"
"intercepted, monitored, recorded, copied, audited, inspected, and\n"
"disclosed to authorized site, Department of Energy, and law
enforcement\n"
"personnel, as well as authorized officials of other agencies, both\n"
"domestic and foreign. By using this system, the user consents to
such\n"
"interception, monitoring, recording, copying, auditing, inspection,
and\n"
"disclosure at the discretion of authorized site or Department of
Energy\n"
"personnel. Unauthorized or improper use of this system may result
in\n"
"administrative disciplinary action and civil and criminal penalties.
By\n"
"continuing to use this system you indicate your awareness of and
consent\n"
"to these terms and conditions of use. LOG OFF IMMEDIATELY if you
do\n"
"not agree to the conditions stated in this warning.";
- Andrew
--
Perfection is reached, not when there is no longer anything to add,
but when there is no longer anything to take away.
- Antoine de Saint-Exupery
- References:
- Capturing a telnet connection event J. Frederick Bartlett ([email protected])
- Re: Capturing a telnet connection event Kay-Uwe Kasemir
- Navigate by Date:
- Prev:
Re: Capturing a telnet connection event Kay-Uwe Kasemir
- Next:
Sequencer priority parameter Frank Lenkszus
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
<2002>
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: Capturing a telnet connection event Kay-Uwe Kasemir
- Next:
Re: Capturing a telnet connection event Ned Arnold
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
<2002>
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|