LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 05-23-2001, 05:39 AM   #1
ederts
LQ Newbie
 
Registered: May 2001
Posts: 7

Rep: Reputation: 0
Question


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.

Cheers,
ederts
 
Old 05-23-2001, 06:48 AM   #2
drjimstuckinwin
Member
 
Registered: Mar 2001
Location: Manchester UK
Distribution: Mainly Fedora
Posts: 496

Rep: Reputation: 30
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
 
Old 05-23-2001, 06:50 AM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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.

[Edited by trickykid on 05-23-2001 at 07:53 AM]
 
Old 05-23-2001, 09:58 AM   #4
ederts
LQ Newbie
 
Registered: May 2001
Posts: 7

Original Poster
Rep: Reputation: 0
Smile

Hi Drjim and Trickykid,

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. =)

Cheers,

Ederts
 
Old 05-23-2001, 11:57 AM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Oh, to tell you now, I think drjim meant Linuxconf, I have never heard of Linuxconfig. I just now caught that too.
 
Old 05-23-2001, 02:03 PM   #6
prowzen
Member
 
Registered: Apr 2001
Location: Canada
Distribution: RH 7.0,
Posts: 89

Rep: Reputation: 15
use linuxconf

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.
 
Old 05-24-2001, 05:11 AM   #7
ederts
LQ Newbie
 
Registered: May 2001
Posts: 7

Original Poster
Rep: Reputation: 0
Hi prozen and others!

About linuxconf I came across a site that explains that in Redhat 7.1 it is not installed by default.

The site is: http://www.solucorp.qc.ca/linuxconf/

Linuxconf is missing in Redhat 7.1


Cheers,

Ederts
 
Old 05-24-2001, 11:18 AM   #8
prowzen
Member
 
Registered: Apr 2001
Location: Canada
Distribution: RH 7.0,
Posts: 89

Rep: Reputation: 15
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"shutdown" and "halt" symlinks: poweroff, reboot. sud_crow Linux From Scratch 11 10-17-2006 11:03 PM
What's the difference between "shutdown -h now" and "halt"? shadkong Slackware 2 04-07-2005 12:43 AM
Can't run "halt" or "reboot" as user, can somebody help? ro_nicu Slackware 4 11-01-2004 07:57 AM
Tiny Sofa 2.0 - I thought "halt", "reboot" were only root command ?? sorcerer Linux - Distributions 1 08-21-2004 03:28 PM
Can't execute commands when logged in as ordinary user.... murphaph Linux - General 3 04-05-2004 05:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration