Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > The Community > Everything BSD > Bsd beginner

Forgot Password?
 Everything BSD   For all discussions regarding Free/NetBSD and OpenBSD.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 07-02-2008   #1 (permalink)
Linux Newbie
 
Geeth's Avatar
 
Join Date: Apr 2008
Location: Brisbane Aus
Posts: 176
Bsd beginner

Hello all,

I have just setup a bsd file server a few weeks ago for the simple reason that i had a spare pc and don't know bsd

I have an account called test, have I have a friend remote log in so I can test permissions etc through ssh.
There is one thing that I haven't been able to work out and it's bugging me. How can you kick a user offline?

If he's theres a user connected to a bsd server, besides deleting the account (which is the only way i have kicked the session) how can you kick someone.

When I lock the account / expire the account it stays online and he can still change dirs etc.

The connection is through ssh.
Geeth is offline  


Reply With Quote
Old 07-03-2008   #2 (permalink)
Just Joined!
 
Join Date: Apr 2005
Location: Concord, NH
Posts: 41
Send a message via Yahoo to masinick
Quote:
Originally Posted by Geeth View Post
Hello all,

I have just setup a bsd file server a few weeks ago for the simple reason that i had a spare pc and don't know bsd

I have an account called test, have I have a friend remote log in so I can test permissions etc through ssh.
There is one thing that I haven't been able to work out and it's bugging me. How can you kick a user offline?

If he's theres a user connected to a bsd server, besides deleting the account (which is the only way i have kicked the session) how can you kick someone.

When I lock the account / expire the account it stays online and he can still change dirs etc.

The connection is through ssh.
If you are familiar with either UNIX or Linux conventions regarding users and processes, you can locate the user (using who) and you can use ps to find the processes that are on the system. As the root user, you can use kill -9 followed by the process number of any process reported by the ps command - ps -al will give you a long listing of all processes. You can use ps -al | grep <user-account> to find the specific processes that concern you, then kill the ones you want to get rid of. That will knock any process out. Just be sure it is the right one, which is why I included the "who" command in the discussion.
masinick is offline   Reply With Quote
Old 07-03-2008   #3 (permalink)
Linux Newbie
 
Geeth's Avatar
 
Join Date: Apr 2008
Location: Brisbane Aus
Posts: 176
Thanks heaps for that.
I spent quite some time googleing and all i came across was how to kick all all but super users.

I will play with that tonight.
Geeth is offline   Reply With Quote
Old 11-25-2008   #4 (permalink)
Just Joined!
 
Join Date: Nov 2008
Posts: 18
That will stop the processes, but not prevent them from logging in again and starting a new session. Is that what you wanted to do? Just stop their current session and allow them to connect again?
gos9x is offline   Reply With Quote
Old 11-25-2008   #5 (permalink)
Content Team
 
sarumont's Avatar
 
Join Date: Apr 2003
Location: /dev/urandom
Posts: 3,682
There's also 'slay' which should kill all the processes belonging to a user:

freshmeat.net: Project details for Slay
__________________
"Time is an illusion. Lunchtime, doubly so."
~Douglas Adams, The Hitchhiker's Guide to the Galaxy
sarumont is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 01:58 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2