Kill user

George Daflidis-Kotsis gdk at demon.net
Thu Apr 12 13:22:02 EEST 2001


On Thu, Apr 12, 2001 at 07:06:44AM +0000, I.Ioannou wrote:

> Enallaktika diabase sto manual tou shell (bash px) ti kanei 
> h metabliti TMOUT 
> (ksilwnei ton xristi aytomata an einai idle gia orismeno xroniko
> diastima)
> Baltin sto /etc/profile kai eisai ok

Auto parakamptetai me autologout=0 ?

Sthn periptwsh pou den 8elei autologout alla apla na skotwnei xrhstes kata
boulhsh 8a proteina:

kill -1 `ps auwx | grep ^username | grep -v grep | grep bash | awk '{print $2}'`

Opou username to onoma tou xrhsth pou 8es na skotwseis.

To otan steileis SIGHUP sto bash kanei graceful logout ton user.

Filika.

-- 
-- George Daflidis-Kotsis -- Systems Administrator -- Demon Internet  --
--  Welcome to hell, here is your DoubleSpaced 386SX and Windows 98.  --



More information about the Linux-greek-users mailing list