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!
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.
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.
Hi
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.
Jim
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.
Oh I forgot to mention that! The first time I was looking all over for linuxconf before I realised that it's an add-on. It was in the installation CD and I was able to install it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.