Mailinglist Archive: opensuse (4547 mails)

< Previous Next >
Re: [SLE] Forcing a user to logout
  • From: Kenneth Schneider <suselist@xxxxxxxx>
  • Date: Mon, 17 May 2004 10:22:48 -0400
  • Message-id: <1084803767.8347.19.camel@xxxxxxxxxxxx>
On Mon, 2004-05-17 at 09:27, Prabu Subroto wrote:
> Dear my friends...
>
> Please teach me which command line in the console
> which I can use to display which users are being
> logged in. They login through NIS.

w

>
> And please tell me which command line that I can use
> to kick the user out (forcing logout). If they login
> through NIS.

kill -1 <pid of user session>

>
> If I login into a machine as a root with ssh (ssh -l
> root 192.168.23.1), can I force with command line the
> users which login locally to be log out?
>

Only local logins or all logins?

Normally root cannot ssh to a box for security reasons. You would need
to ssh with a regular user and then su or sux or su - to root.

--
Ken Schneider
unix user since 1989
linux user since 1994
SuSE user since 1998 (5.2)



< Previous Next >
Follow Ups
References