Re: OSR5: how to find out disabled terminals by authorization subsystem?



In article <f6r57g$ut8$1@xxxxxxxxxxx>, Pepe <pepe@xxxxxxxxxx> wrote:
show-locked-users.sh

See also ftp://ftp.armory.com/pub/scripts/lastlogin - it is a wee bit larger,
but it has some useful options. "lastlogin -A -uk -on" will print the names of
users whose accounts are locked.

About the terminals locking issue, I have found the "ttylock" and
"ttyunlock" system commands, which work great. However, I have not found
any command to see which tty*'s have fallen under the security lock. I
see I can launch "scoadmin terminal" --> Unlock [Enter] ---> F3, but
that is not a scriptable solution and lacks any elegance (which is to be
expected from a real UNIX).

So, how can I find out from a pure command line which terminals are locked?

I had an awk function that reads the ttys database, so this was easy:
ftp://ftp.armory.com/pub/user/spcecdt/lockedttys

John
--
John DuBois spcecdt@xxxxxxxxxx KC6QKZ/AE http://www.armory.com/~spcecdt/
.



Relevant Pages

  • Re: Enviroment Variables issue
    ... I am having trouble with system commands from the command prompt or ... If I try to run a system command, such as ping, traceroute, ...
    (microsoft.public.windowsxp.general)
  • Re: writing array to file?
    ... to three system commands, it would be: ... You seem unusually dependent on shelling out to external programs. ... Perl is more than a shell scripting language. ... This says to run the command between ``, ...
    (comp.lang.perl.misc)
  • Re: Edit Windows PATH
    ... On Fri, 1 Jan 1988, amr wrote: ... Is there a reason that a simple systemcommand won't work here? ... Normally I'm opposed to using system commands when the task can be done ...
    (perl.beginners)
  • Re: Moving command.com out of system32 directory
    ... > What is the rationale for moving the dos command shell out ... system commands on your system if they know or can guess the location of the ... [CMD.EXE is the DOS shell that comes with Windows ...
    (microsoft.public.inetserver.iis.security)