Re[2]: [newbie] No logout/halt/reboot in Dolphin
Hey Derek, I have a very similar question - in 9.0 I can't run shutdown as a regular user anymore - says command not found. So I guessed it's in /sbin which isn't in a regular user's path so I typed /sbin/shutdown -r now but bash said only root can do that. Shutdown has r-x permission for all, so, I wonder, what setting/file do I need to change in order to be able to run shutdown as a regular user? Shutdown is under the control of PAM (Permissions access module?) If you look at /usr/bin/shutdown you will see it is in fact a symlink to an application called 'consolehelper' Consolehelper is a wrapper which looks at the name of the symlink it was called from (in this case shutdown) and looks it up in /etc/pam.d If it finds a file in there with the same name as the symlink it applies the authentication tests it finds there. If authentication passes consolehelper will pass control over to the requested application. ( /sbin/shutdown) /etc/pam.d/shutdown contains :- #%PAM-1.0 auth sufficient /lib/security/pam_rootok.so auth required /lib/security/pam_console.so #auth required/lib/security/pam_stack.so service=system-auth accountrequired /lib/security/pam_permit.so In your case I think it is the last line which is stopping you running shutdown. Probably because of your security level. If you ask for high security, then that is what you get :) Thank you for the answer, but I set the lowest security level at install (I think it was Medium). So what do I neeed to do? Commment out the last line? -- TIA Roman Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: Re[2]: [newbie] No logout/halt/reboot in Dolphin
On Tuesday 15 Oct 2002 12:25 pm, Roman Korcek wrote: Hey Derek, I have a very similar question - in 9.0 I can't run shutdown as a regular user anymore - says command not found. So I guessed it's in /sbin which isn't in a regular user's path so I typed /sbin/shutdown -r now but bash said only root can do that. Shutdown has r-x permission for all, so, I wonder, what setting/file do I need to change in order to be able to run shutdown as a regular user? Shutdown is under the control of PAM (Permissions access module?) If you look at /usr/bin/shutdown you will see it is in fact a symlink to an application called 'consolehelper' Consolehelper is a wrapper which looks at the name of the symlink it was called from (in this case shutdown) and looks it up in /etc/pam.d If it finds a file in there with the same name as the symlink it applies the authentication tests it finds there. If authentication passes consolehelper will pass control over to the requested application. ( /sbin/shutdown) /etc/pam.d/shutdown contains :- #%PAM-1.0 auth sufficient /lib/security/pam_rootok.so auth required /lib/security/pam_console.so #auth required/lib/security/pam_stack.so service=system-auth accountrequired /lib/security/pam_permit.so In your case I think it is the last line which is stopping you running shutdown. Probably because of your security level. If you ask for high security, then that is what you get :) Thank you for the answer, but I set the lowest security level at install (I think it was Medium). So what do I neeed to do? Commment out the last line? No I do not think that would help. You have to 'pass' a test to get access to the command. If you have medium security I do not understand why your system should behave differently to mine (also medium) My ordinary users can use shutdown without a problem. Have you ever had high security?, or did you upgrade instead of install? It might be worth taking a look at /etc/security/console.apps I have a zero byte file in there called shutdown. It may be that at higher security levels that file does something. You could also try editing /etc/pam.d/shutdown like this :- #%PAM-1.0 auth sufficient /lib/security/pam_rootok.so auth required /lib/security/pam_console.so auth required /lib/security/pam_stack.so service=system-auth #accountrequired/lib/security/pam_permit.so I think you will then be prompted for a password before shutdown derek Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: Re[2]: [newbie] No logout/halt/reboot in Dolphin
On Tuesday 15 October 2002 08:07 am, you wrote: snip Thank you for the answer, but I set the lowest security level at install (I think it was Medium). So what do I neeed to do? Commment out the last line? No I do not think that would help. You have to 'pass' a test to get access to the command. If you have medium security I do not understand why your system should behave differently to mine (also medium) My ordinary users can use shutdown without a problem. Have you ever had high security?, or did you upgrade instead of install? It might be worth taking a look at /etc/security/console.apps I have a zero byte file in there called shutdown. It may be that at higher security levels that file does something. You could also try editing /etc/pam.d/shutdown like this :- #%PAM-1.0 auth sufficient /lib/security/pam_rootok.so auth required /lib/security/pam_console.so auth required /lib/security/pam_stack.so service=system-auth #accountrequired /lib/security/pam_permit.so I think you will then be prompted for a password before shutdown derek Guys, I don't about 9.0, or which versions (RC releases, boxed set, d/l versions) you're using, but I had this same trouble with 8.2. Using the d/l 3 CD version, any normal user on my system could not shut it down. As soon as I purchased the boxed set (7 CD Powerpack), my normal users could once again shut down. I don't know if its relevant here or not, but its just a thought... See ya... -- /\ Dark Lord \/ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: Re[2]: [newbie] No logout/halt/reboot in Dolphin
Okay, it seems I need to answer my own question: I'm still a newbie at Linux, and so I had no idea *why* I couldn't get those halt/reboot/logout options to appear. Well, after playing around, just looking and looking all over in the menus, I ran across the Login Manager. Its kinda hidden in Dolphin's menus. In any case, in the Login Manager, I went to the Sessions tab. The very first setting is called Allow Shutdown and you have a subsetting for the Console and Remote. The setting for Console said Nobody; I simply changed it to Everybody. I logged out and logged back in, and then tried to log out again. To my delight, I now had the options to halt/reboot/logout. Success! Now I could be wrong about this; I could have changed a different setting somewhere else, but I SERIOUSLY DOUBT IT. (In other words, I don't know why this setting change accomplished what I was after). The point is that it worked and I'm finished. Ugh! -Lawrence Winstead 10/15/2002 7:51:53 AM, Ronald J. Hall [EMAIL PROTECTED] wrote: On Tuesday 15 October 2002 08:07 am, you wrote: snip Thank you for the answer, but I set the lowest security level at install (I think it was Medium). So what do I neeed to do? Commment out the last line? No I do not think that would help. You have to 'pass' a test to get access to the command. If you have medium security I do not understand why your system should behave differently to mine (also medium) My ordinary users can use shutdown without a problem. Have you ever had high security?, or did you upgrade instead of install? It might be worth taking a look at /etc/security/console.apps I have a zero byte file in there called shutdown. It may be that at higher security levels that file does something. You could also try editing /etc/pam.d/shutdown like this :- #%PAM-1.0 auth sufficient/lib/security/pam_rootok.so auth required /lib/security/pam_console.so auth required /lib/security/pam_stack.so service=system-auth #accountrequired /lib/security/pam_permit.so I think you will then be prompted for a password before shutdown derek Guys, I don't about 9.0, or which versions (RC releases, boxed set, d/l versions) you're using, but I had this same trouble with 8.2. Using the d/l 3 CD version, any normal user on my system could not shut it down. As soon as I purchased the boxed set (7 CD Powerpack), my normal users could once again shut down. I don't know if its relevant here or not, but its just a thought... See ya... -- /\ Dark Lord \/ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com