Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
It sounds like you're trying to create an account for very limited access. This is exactly what chroot directories are designed for. You can set it up so that the user doesn't even have access to the kill command (or even ps).
You may wish to explore chroot setups.
Groups in and of themselves don't have "rights". The rights (permissions) are set on the files. If a user starts a process he has permission to kill it. In some UNIX environments this can be controlled with setprivgrp but I'm not sure of any equivalent in Linux so chroot is the way to go.
By the way - users can only kill processes which they have themselves started. E.g. a process started by root cannot be killed by another user.
Code:
[djshaji@localhost ~]$ killall -verbose gdm-binary
gdm-binary(1622): Operation not permitted
gdm-binary(1860): Operation not permitted
gdm-binary: no process killed
However, root is exempt from this, and she can kill any process she wants.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.