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.
Hi! I'm a newbie on linux and I've been studying this new OS for almost two weeks now. I know there are still more things to learn. I already did my best to look for an answer to my question but finally, I decided to post it here.
So this is my case. I execute the command "useradd ederts" in the root account. And I put password on the username ederts by executing the command "passwd ederts" on the root account.
My question is, when I execute the command "halt" in the ederts account it was able to halt the system. I thought this can only be done by a root account.
I'm using my own computer in studying this OS and am using Redhat 7.1.
Now back to my question. How can I make it a point that only the root can halt my system? It's pretty scary even ordinary users like "ederts" can halt the system.
Waiting for your answers and thank God I was able to find this forum on the Internet. Seems having a thick book is not enough to answer all my questions.
If you look in LinuxConfig, you should see a tab for editing user accounts. Can't check exactly as I'm at work, so no RH system. If you click on the account name, a separate menu should appear with the priveliges, and you can enable/disable as you wish. Click on activate changes, and your problem should have gone away.
There's probably a way to do it from the command line, but I don't know it.
As far as I know most were by default to not be able to halt or shutdown the system. I am unsure of RedHat 7.1 if they have changed that or what.
You should be able to manually change that with permission levels.
Looks as if drjim there beat me to it.
Thanks for the immediate response to my email. I was thinking (while waiting to get home) if that can be solved by changing the permission of the "halt" and "shutdown" file under the sbin/? Do you think it's better to do it in the LinuxConfig? Just thinking if there's a window in the LinuxConfig that I can permit a particular user what files he can execute in the linux system.
Doing it in the console mode or in the shell is kinda tricky for I might miss some files to limit the permission with the other ordinary users.
I'll try your suggestion when I get home. Thanks again. =)
Use linuxconf. I used it for creating user and user groups during my oracle installation. There were options to specify if the user has permission to restart the machine and a few other options too.
Initially I too tried the groupadd, useradd commands but I found linuxconf to be a very convenient tool. Hope this helps.