LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-04-2009, 11:21 PM   #1
infinity0022
LQ Newbie
 
Registered: Feb 2008
Posts: 4

Rep: Reputation: 0
kill process/application


Hi everyone,

I wanted to know if i launch an application from root account and make it run in the background. if a user connects to the same system from console, will he be able to see/kill that process?

thank you
 
Old 03-05-2009, 01:47 AM   #2
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 774
Blog Entries: 6

Rep: Reputation: 75
user cannot kill root process
but some might can see
 
Old 03-05-2009, 02:14 AM   #3
T74marcell
Member
 
Registered: Mar 2009
Posts: 102

Rep: Reputation: 18
A common user will certainly not be able to mess up with root processes. Listing processes depends on the login shell. Hosted servers sometimes provide chrooted shells with a very limited choice of tools. If tools like 'ps' are not available to the login account, then even listing system processes will not be possible.

To avoid that users can run such tools, you can move these tools as root to the /sbin directory. For example: 'ps' is located in /bin, by moving it to /sbin only root will be able to use it.

----------
T74marcell

Arch Linux

Last edited by T74marcell; 03-14-2009 at 12:52 AM.
 
Old 03-05-2009, 02:58 AM   #4
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
If that user is a member of sudoers or can su to root then he could be able to see/kill certain process started by root.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get the PID of the process giving kill signal to a process? hariprd Programming 2 11-27-2008 03:10 AM
Shell Script : Kill a running process when another process starts ashmew2 Linux - General 3 08-20-2008 03:47 AM
How to kill a process or application vitalstrike82 SUSE / openSUSE 1 02-16-2008 10:23 AM
I want to kill process Jeon, Chang-Min Linux - General 6 08-09-2005 12:14 AM
cannot kill process (kill -9 does not work) mazer13a Linux - General 1 05-27-2005 02:32 PM


All times are GMT -5. The time now is 10:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration