From owner-freebsd-questions Sun Feb 11 0:31:23 2001 Delivered-To: freebsd-questions@freebsd.org Received: from xena.gsicomp.on.ca (cr677933-a.ktchnr1.on.wave.home.com [24.43.230.149]) by hub.freebsd.org (Postfix) with ESMTP id 0F79537B491 for ; Sun, 11 Feb 2001 00:31:05 -0800 (PST) Received: from hermes (hermes.gsicomp.on.ca [192.168.0.18]) by xena.gsicomp.on.ca (8.11.1/8.9.3) with SMTP id f1B8TEi56373; Sun, 11 Feb 2001 03:29:14 -0500 (EST) (envelope-from matt@gsicomp.on.ca) Message-ID: <004401c09404$68a1ad20$1200a8c0@gsicomp.on.ca> From: "Matthew Emmerton" To: "Mark Livingstone" , References: <000a01c093f9$80f05df0$0200a8c0@vvk> Subject: Re: NEED advice! Date: Sun, 11 Feb 2001 03:27:00 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >We have a service at our university which provides access to e-mail/web/etc in > text mode.. Powered by Solaris, as soon as you enter the shell, it loads HTML > menu from which you navigate.. > My questions is: how is it done? I can make such kind of a menu, however, i > don't know how to load a it automatically for each user who's logging in.. if i > put html file instead of the shell, it doesn't work. Most likely they're calling Lynx or some other form of text-mode browser in their login script. Doing something like this will require: 1) the appropriate csh (.login) or sh (.profile) script written to trap signals, so that users can't CTRL-C out of the login script and get a shell prompt (see the 'trap' command in sh) 2) the last line of the login script should be "lynx http:/your.home.page; exit" 3) a global lynx.cfg in /usr/local/etc which sets the default homepage. This is the MOST IMPORTANT file here, since it is in this file you restrict what your users can do with Lynx When a user logs in, the 'trap' line in the login script prevents them from breaking (CTRL-C) or suspending (CTRL-Z) the login process and getting a shell prompt; the exit immediately after lynx will log them off as soon as they quit Lynx. The default home page (specified on the lynx command line or in the global lynx.cfg) will have all the links to mail, news, whatever. I used to work at an ISP where we used to do something like this for our text users (except it was a custom curses-based app instead of Lynx.) -- Matt Emmerton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message