From: Liam Bedford (lbedford at domain wbtsystems.com)
Date: Mon 11 Oct 1999 - 18:56:54 IST
On Mon, 11 Oct 1999, alan509 wrote:
> Is it just me but i have noticed that if i
> telnet into my linux box running redhat 6.1(ftp.esat.net .iso)
> start vi and want to exit without saving
> by typing
> !q
> i get this error here and wont let me out unless i save it
>
> :!q
> [No write since last change]
> /bin/bash: q: command not found
>
> 127 returned
> Press RETURN or enter command to continue
>
This isn't the way to exit :(
by doing :!q
it's trying to execute q the program (! is the command to run a shell).
you need to use :q! to force quit.
(example of ! would be
:w blah.cpp
:! gcc blah.cpp
)
> also i dont have a moniter for my linux box so i want to enable root telnet
> access
> im modifying /etc/securetty
> i want to let one root login
>
> my file looks like this
>
> tty1
> tty2
> tty3
> tty4
> tty5
> tty6
> tty7
> tty8
> pts/1
>
>
>
> i have restarted and everything without luck .. still cannnot telnet in
> i was able to to this with redhat 5.1
>
Check /etc/pam.d/login and see what's in there.. if you take out the
securetty line, it'll let anyone telnet in as root.
By adding lines to /etc/securetty you let root telnet in on that pty, but
you can't be sure which one you'll get (if there's someone already
in, you'll get a later one). So you might want to leave it open, or use
su (which is the recommended way)
Regards
L.
--- Liam Bedford System Administrator WBT Systems, Block 2, Harcourt Centre, Harcourt St. 01-4170153 9 out of 10 orange cats prefer Mandrakes!
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:04:42 GMT