ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
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.
Hey, I am using EvilE with the enlightenment desktop. I used redhat linux 8.0 before and it allowed everyone to shutdown the system. For some reason this distro won't allow non-admins to use the shutdown command. Is there a file I can edit to change this behaviour? I am trying to write a basic script to allow regular users to safely shutdown the system when they are finished using it.
Thanks for any help!
system specs:
kernel 2.4.20
EvilE 0.17
Emachine T1100
cel 1.0 ghz
128 mb sdram
20gb hd
Well, I have two machines hooked up to one power switch. Yes, I know. Anyways, one is a windoze box that is quite fond of crashing. As it has no power switch (strange, huh) they have to switch off the power strip to reboot it. As the linux box is on the same strip they need to be able to shutdown the linux box safely before they cut the power to the windows box. Understanding that I cannot always be there to shutdown the system for them, I would like to write a simple script to shutdown the system easily.
As these are my colleagues in the business I am unconcerned about them stealing anything. Not to mention the fact that they probably couldn't tell you which system, was running what operating system anyways. They word process, they don't care what they do it on.
well, my understanding of shutdown is you have to be root. I guess the basic fix would be to make them part of root. However I imagine there are many better ways.
I guess if you created a new group, put the people you want in it and change shutdown's group and owner to the new group (add root to it of course) that would do it too.
Why not look into setting up SUDO access for all users for the single command? This would be a "bit" more secure and could be configured with a single line of text.
read carefully on the info regarding configuration, if your not up on vi, it is a bit of a pain to configure with other editors as vi will validate syntax for you when you try to save; other editors wont and sudo will fail if there is any errors in the config file.
If I am not mistaken, most distros come with sudo pre-installed, you just need to edit the 'sudoers' file.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.