Linux - NewbieThis 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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I've three user in my machine ,and i want to make sure that the process created by the user1 can be killed by other user and vice-versa ,is there any way i can do that without using root password or sudo
can help, but giving CAP_KILL to a process, will allow it to kill any process it wants.
Perhaps there is another solution for your problem, if you tell about the reason you want to do this.
The Reason I'm asking is that i have a Main script and inside that script it has Two child script(which runs a Daemon).the problem is when user1 runs the main script the daemon runs ,but at this point of time the user2 runs the script and it can't kill the Daemon which it's not owned ,so i need to add some line so that all the user can kill the daemon so that they can run the script and daemon,
And killing the Daemon does not stop any important thing,so i just want to kill the process
Why is it a problem, that each user runs his own daemon process? What if both users want to run the main script at the same time?
If the daemon processes will need access to a certain resource (like a specific network port or a hardware device), then it is better to start the daemons by a dummy user (e.g. nobody) by root and make the daemons to communicate with the main script through a pipe or socket. In this case there will be no need to start and stop the daemon processes.
If the daemon scripts do not access any specific resources, then it is ok to run them concurrently.