Sponsored Content
Operating Systems AIX Kill multiple processes ran by root Post 303005640 by jeffs42885 on Friday 20th of October 2017 01:55:50 PM
Old 10-20-2017
Quote:
Originally Posted by rbatte1
By 'client', do you mean the person/company paying you or client software?

If it's the former, tell them that they will not be supported, or perhaps get them to run the stop script as root.

If it is client software, then presumably somewhere there is a root-owned & SUID executable somewhere that is called in the start-up. Find that and take away the SUID.




Does that get you any closer?



Robin
Client as in my company. Who is running the daemon as non root when its not really needed. I've seen several implementations of this product but never seen the daemon running as root.

Heres my end result-

Code:
ps -ef | grep [p]rogram | awk '{print $2}' | xargs sudo kill

 

10 More Discussions You Might Find Interesting

1. Programming

C program to kill root processes

Hello, First let me start by saying I have searched the forum and read all the SUID stuff but it is not in the neighborhood I am looking for. Here is the problem. We want to grant a non super-user permission to kill root processes but only if the process matches certain criteria. ... (8 Replies)
Discussion started by: TioTony
8 Replies

2. Filesystems, Disks and Memory

Ran out of space on /dev/root partition

hi, I have a SCO unix server which has a 36gb hard drive, but the IT company who supplied it assigned 1gb to /dev/root, 15mb to /dev/boot and 33gb to /dev/u. The /dev/root partition is now full, is there a way I can use the 33gb assigned to /dev/u without loosing any data, preferably... (2 Replies)
Discussion started by: Martyn
2 Replies

3. Shell Programming and Scripting

kill all processes

i have a very short file that has in it a line for a find command. now, when i run this script and I kill the script later, using the ps -ef | grep scriptname. i noticed kill -9 kills the script itself but does not kill the internal find command that it gave birth to. say theres a file... (0 Replies)
Discussion started by: Terrible
0 Replies

4. UNIX for Dummies Questions & Answers

Kill several processes at a time

Hello, ps -C a* returns the list of the process I need to kill. but ps -C a* -o pid | kill does not work and I can't get the syntax right. Thanks for any help (4 Replies)
Discussion started by: JCR
4 Replies

5. Solaris

kill processes

how to kill the processes of aperticular user? because i have nearly 25000 process are there for perticular user. i need to kill. Please provide the information? Regards, Rajesh (3 Replies)
Discussion started by: pmrajesh21
3 Replies

6. Solaris

kill the processes seen under ptree

Hi, How to kill the processes running under ptree ? I am noticing lot of processes running under ptree with ssh ? I tried to kill with -9 option which is not working ? Thanks, Radhika. (2 Replies)
Discussion started by: radhirk
2 Replies

7. Shell Programming and Scripting

Kill processes

for i in 'ps -f | grep textedit' do kill $i done I wrote this but it wont work. I am trying to find processes and kill them. Any help would be welcome. (1 Reply)
Discussion started by: hawaiifiver
1 Replies

8. Shell Programming and Scripting

kill all user processes

Hi there, i've been searching all over and i thought i had understood the way i should go to kill all the processes related to a user. But i'm getting more confused then i was. By lunch time i have to make a database backup, and for that all the users shoul logout. The problem is that many users... (4 Replies)
Discussion started by: vascobrito
4 Replies

9. Shell Programming and Scripting

kill multiple processes by name

Want to kill multiple processes by name. for the example below, I want to kill all 'proxy-stagerd_copy' processes. I tried this but didn't work: >> ps -ef|grep proxy_copy root 991 986 0 14:45:34 ? 0:04 proxy-stagerd root 1003 991 0 14:45:49 ? 0:01... (2 Replies)
Discussion started by: catalinawinemxr
2 Replies

10. UNIX for Dummies Questions & Answers

find the no of processes that ran 2 hours before or earlier

Is there a way to find out the total no of processes that were running ? - 2 or 3 hours before - list those no of processes (3 Replies)
Discussion started by: jansat
3 Replies
dms(8)							      System Manager's Manual							    dms(8)

Name
       dms - diskless management services utility

Syntax
       /etc/dms

Description
       The  utility  performs  diskless  management services.  You can use to install products into diskless management services areas on a server
       machine and register diskless clients so that they can access those products on the server machine, rather than having each client  install
       the  products  to a disk on its local machine.  The server machine can be either a VAX or a RISC machine and it can serve both VAX and RISC
       clients.

       Before you set up a diskless management services area on a server, the following software should be installed: Local  Area  Network  (LAN);
       Network File System (NFS); and Maintenance Operations Protocol (MOP).

       The utility performs the following functions:

       a - Add Client Processor

       m - Modify Client Parameters

       r - Remove Client Processor

       l - List Registered Clients

       s - Show Products in Diskless Environments

       i - Install Software

       c - Create Diskless Area on Disk

       k - Kernel Rebuild or Copy

       To set up a diskless management services area on a server, select functions in the following order:

       1.   Create Diskless Area on Disk (c)

	      This sets up the disk partitions needed for the two diskless management services file systems, and (The question mark (?) represents
	      a unique number assigned by The file system contains a common root area that is copied to each client when it is registered,  and  a
	      area  that  is  shared  by  all  the  clients.  The file system contains a copy of the common root area for each registered diskless
	      client.

       2.   Install Software (i)

	      This installs the products from the distribution media to the file system.  If the product will be  accessed  by	VAX  clients,  the
	      images  from the media are put under a directory under the file system.  If the product will be accessed by RISC clients, the images
	      from the media will be put under a directory under the file system.  The question mark (?) represents a unique number assigned by

       To register a diskless client, select the Add Client Processor option (a).  This copies the common root area in the file system, for  exam-
       ple,  to  the  diskless	client's directory in the file system, for example, The server's file is updated to allow the client to access its
       individual root and the shared area.

       Each diskless client's area also contains a client parameter file,

       You must use interactively to set up a diskless environment or to modify client parameters.

       There are several functions you can use either interactively or from the command line:

       - Add Client Processor

       - Show Products in Diskless Environments

       - Remove Client Processor

       - Kernel Rebuild

       When the first diskless client is registered for a diskless management services area, a database file, is created on  the  server  machine.
       You can use this file and the command line to manage groups of diskless clients.

Files
See Also
       exports(5nfs), addnode(8), setld(8)
       Guide to Diskless Management Services
       Guide to Server Setup

																	    dms(8)
All times are GMT -4. The time now is 05:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy