Article View: comp.sys.next.sysadmin
Article #1916Re: Three NS3.0 questions
From: Mike Matthews
Date: Sat, 21 Nov 1992 21:17
Date: Sat, 21 Nov 1992 21:17
52 lines
2389 bytes
2389 bytes
In article <1ehfadINN1f3@athena.sdsu.edu> psimpson@sunstroke (Paul Simpson) writes:
>My children use my NeXT using their own accounts, but they are too young
>to understand (and remember) passwords. I have now set my computer up to
>receive incoming modem calls. The question is, how can I limit logins
>to my children's accounts to the main terminal only?
Make their shell files (.cshrc) check where they're coming from. Or give
them a secure shell which sees who's the parent process; if it's getty
they're coming in from a modem and you should can 'em.
Something like
#!/bin/sh
ppid=/bin/ps l $$ | awk '$1 !~ /F/ {print $4}'
if [ "$ppid" = "1" ]; then
echo "so longer, sucker"
exit(1)
else
exec /bin/csh !*
fi
or at least along those lines.
>What has NS3.0 done to lpr? I used to be able to lpr ASCII files to my
>old Epson FX-86 using a printcap that avoids the PostScript filters. Is
>Now everything that I lpr prints as PostScript code. Is anybody aware
>of a NS3.0 workaround? I don't want anything fancy, just ASCII out the
>serial port.
You sure that printcap's still there? The install does weird things....
>Finally, why is it that whenever I try:
> cu hostname
>I get an Input error after the modem has been taken off the hook, but when I
>try:
> uucico -shostname -x5
>there is no problem? I was trying to use cu to test my uucp chat scripts,
>but cu only works if I do "cu phonenumber". This last is not critical since
>using uucico is better for debugging the scripts anyways, but I'm curious.
Does your modem report call progress? Like CARRIER 2400, PROTOCOL ALT,
CONNECT 38400 or whatnot?
> Thanks,
> Paul
> Please e-mail to:
> psimpson@sunstroke.sdsu.edu
------
Mike Matthews, matthews@oberon.umd.edu (NeXTmail accepted)
------
NOBODY EXPECTS THE SPANISH INQUISITION
Technical Details
Message-ID:
<17113@umd5.umd.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!umd5!oberon.umd.edu!matthewsReferences:
<1ehfadINN1f3@athena.sdsu.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!umd5!oberon.umd.edu!matthews From: matthews@oberon.umd.edu (Mike Matthews) Newsgroups: comp.sys.next.sysadmin Subject: Re: Three NS3.0 questions Message-ID: <17113@umd5.umd.edu> Date: 21 Nov 92 21:17:26 GMT References: <1ehfadINN1f3@athena.sdsu.edu> Sender: news@umd5.umd.edu Organization: /etc/organization Lines: 52