Home
Support

Knowledge Base

BSPs and drivers
Community resources
Product documentation
Questions?
Contact us

kill a root process as user
 
________________________________________________________________________

Applicable Environment
________________________________________________________________________
  • Topic: Kill a root process as user
  • SDP: 6.3.2
  • Target: Any supported target
________________________________________________________________________

Recommendation
________________________________________________________________________

"root process" what is that ? :

pidin "user" displays only 0 0 0 0 0 0 so that is a root process:
example:

# pidin -psyslogd user
pid name uid gid euid egid suid sgid
108953654 usr/sbin/syslogd 0 0 0 0 0 0

So syslogd is a "root process" .

How to kill syslogd as non root user ?

As root :

set the s-bit on op :

# chmod +s /usr/bin/op
# ls -l /usr/bin/op
-rwsrwsr-x 1 root root 4192 Sep 07 2007 /usr/bin/op

as user do:

$/usr/bin/op slay syslogd

________________________________________________________________________
NOTE: This entry has been validated against the SDP version listed above. Use caution when considering this advice for any other SDP version. For supported releases, please reach out to QNX Technical Support if you have any questions/concerns.
________________________________________________________________________


Related Attachments
 None Found





Please contact us with your questions or concerns.