On Sun Nov 01 1998 11:53, Vikrant Potnis wrote:

>  Hi all,
> I put the following shell script in  /etc/profile.
> for i in `ps | grep telnet | cut -d " " -f 1`
> do
> kill -9 $i
> done

With all due respect, this approach is really ugly :)

> When i telnet and login as root  the process is killed...
> When i login as user , the process does not get killed
> Why??? Is there any other way of stopping root from remote login?

man securetty

(By default, root shouldn't be able to log in from anywhere except a local
console.  Unless it's done with something like ssh).

Cheers
Tony

Reply via email to