cancel
Showing results for 
Search instead for 
Did you mean: 

HOW TO KILL SESSIONS

Omprakash_2
Frequent Advisor

HOW TO KILL SESSIONS

Hi,

Can some some suugest me how to kill a user session. But root user is not available.

Because users are working in night shift, they are not able to work if network is suddenly disconnected. Users are getting $ prompt.
10 REPLIES
Patrick Wallek
Honored Contributor

Re: HOW TO KILL SESSIONS

>>Can some some suugest me how to kill a user
>>session. But root user is not available.

One user cannot kill another users session.

You can use 'sudo' for things like this, but if you don't have root access in some fashion then you are pretty much out of luck.
Omprakash_2
Frequent Advisor

Re: HOW TO KILL SESSIONS

Hi,

Can we able to provide access to user only for kill command???
Are else there is any script to killing a session. IF script contain root password, its not a problem to me.
Johnson Punniyalingam
Honored Contributor

Re: HOW TO KILL SESSIONS

>>Can we able to provide access to user only for kill command???
Are else there is any script to killing a session.

You need Install Sudo.

>>IF script contain root password, its not a problem to me.<<

This is danger, if some "Smart" people come to know about this they could hack your server more over its "Secuity violation"

Sudo will drive safe.

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
Jeeshan
Honored Contributor

Re: HOW TO KILL SESSIONS

you cannot kill another user's session until you are not super user.
a warrior never quits
Omprakash_2
Frequent Advisor

Re: HOW TO KILL SESSIONS

Hi,

From where we should download sudo installation package???
Suraj K Sankari
Honored Contributor

Re: HOW TO KILL SESSIONS

Hi,

Apart from root, the same user can kill the user session (same user's).
for example if you want to kill user "abc"
then logged in as "abc" and kill old "abc" user.

Suraj
George_Dodds
Honored Contributor

Re: HOW TO KILL SESSIONS

What version os are you using?

Take a look here for sudo

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.7.0/
George_Dodds
Honored Contributor

Re: HOW TO KILL SESSIONS

Here is another source, it also has a good section explaining about sudo as well.

http://www.courtesan.com/sudo/sudo.html
Johnson Punniyalingam
Honored Contributor

Re: HOW TO KILL SESSIONS

>>From where we should download sudo installation package???<<

http://www.gratisoft.us/sudo/download.html

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
gobi_1
Frequent Advisor

Re: HOW TO KILL SESSIONS

you should have sudo first