Michel Posted December 19, 2003 Report Share Posted December 19, 2003 I tried power off, halt, shutdown -h now ...I suppose all are linked/kind iof aliases, but anyway nothing works. I everytime get ..you have to be stuid root. But /usr/sbin/uyserhelper is etuid root (rws...). I'm running on securitylevel 4. I quite satisfied with this level, but I wopuld like to be able to shut down without havzeing to become root. any ideas? thanks. Quote Link to comment Share on other sites More sharing options...
bvc Posted December 19, 2003 Report Share Posted December 19, 2003 somewhere in linuxconf/users you can give users the privy to halt/reboot etc.... Note: this was broken in 9.0. Quote Link to comment Share on other sites More sharing options...
Michel Posted December 21, 2003 Author Report Share Posted December 21, 2003 I does indeed have that option and I tried it ....but it wouldn't work. Any other ideas.? What permissions do you need to be able to shut down? Quote Link to comment Share on other sites More sharing options...
Pzatch Posted December 21, 2003 Report Share Posted December 21, 2003 You need root permisions. cron might be able to be set to shut it down at a predetermined time. But the shutdown command has a time option also. Quote Link to comment Share on other sites More sharing options...
bvc Posted December 21, 2003 Report Share Posted December 21, 2003 You need root permisions. since when? That's insane. Only makes sense in an Enterprise world and since ML has targeted the desktop, this shouldn't be. :D Quote Link to comment Share on other sites More sharing options...
DragonMage Posted December 22, 2003 Report Share Posted December 22, 2003 Well.. he did say he uses security level 4. I think that means that he is using the "higher" setting in draksec. That would mean that some programs such as shutdown and halt would require higher security setting than regular user. Of course, I never tried the higher security setting than "standard". I use mandrake primarily as a desktop, not a server, so standard is good enough for me. Quote Link to comment Share on other sites More sharing options...
bvc Posted December 22, 2003 Report Share Posted December 22, 2003 (edited) true....forgot that....i never set more than standard either.....ain't no server :bvc: Edited December 22, 2003 by bvc Quote Link to comment Share on other sites More sharing options...
Pzatch Posted December 22, 2003 Report Share Posted December 22, 2003 I beleive it has something to do with auto login also. If you auto login whether into a gui or not I thing you then have the option of shutdown. But if you don't auto loging then you need to revert back to root to do it. I 90% of the time just have it set to auto login to KDE and use the shutdown button. When I don't auto login I can't use the button. Quote Link to comment Share on other sites More sharing options...
Michel Posted December 22, 2003 Author Report Share Posted December 22, 2003 (edited) Ok, I can shutdown and reboot using sudo now .... I made an alias: /usr/bin/sudo /usr/bin/poweroff for poweroff and also one for reboot. This worls for shells (I made teh entry in /etc/profile.d), but doesn't work from gui ... Any idea which commans the gui uses to shutdown (I use gnome, but would like to make it work with others too ). Ins standard-secuiryt level your X-server is listening to connections, every users can browse ervery users home-directory, ... Anyway I find also a good way to learn which techniques you can use for securing your system. Maybe my system isn't secure ... but I want to learn about it. Linux has quite some security-features, but what good are they if the most regular users won't use them ... Somebody at school uses his laptop always in root-mode. He was tired of having to type th root-password again and again... I am used to it , but I also don't think you have to type it again and again as far as I know: you can always login in a shell as root ... if that helps you, but anyway. So, now to be able to shut down from using the gui ... Edited December 22, 2003 by Michel Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.