how to make: require root password to shutdown / normal user cannot shutdown
Hello. I miss the good old days on almost every Linux that normal users cannot shutdown the machine. I have a SuSE 10.1 installation which has to be on for all the time. Every user go to click 'Desktop' -> 'Logout', then, instead of given this dialog: gopher://sdf.lonestar.org/I/users/weiwu/logout_prompt_1.png This dialog is given: gopher://sdf.lonestar.org/I/users/weiwu/logout_prompt_2.png What I want is dialog 1. What I have is dialog 2. Can I achieve it? -- 锐业软服(国内业务) http://www.realss.cn Real SoftService http://www.realss.com 销售咨询(Sales Department): 0086 592 20 99987 (Chinese, German, English) 国际业务(International Sales): 0086 10 8460 6011 (German and English) 联系:厦门大学科技园,嘉庚二号楼6楼 邮政:厦门大学2312号信箱(邮编361005)
张韡武 wrote:
Hello. I miss the good old days on almost every Linux that normal users cannot shutdown the machine. I have a SuSE 10.1 installation which has to be on for all the time. Every user go to click 'Desktop' -> 'Logout', then, instead of given this dialog: gopher://sdf.lonestar.org/I/users/weiwu/logout_prompt_1.png This dialog is given: gopher://sdf.lonestar.org/I/users/weiwu/logout_prompt_2.png
What I want is dialog 1. What I have is dialog 2.
Can I achieve it?
My Chinese isn't very good, so those pictures don't tell me much, however you can configure the KDE desktop to requires root password for shutdown & reboot. You can also change the permissions for /sbin/halt.
On 8/27/06, James Knott <james.knott@rogers.com> wrote:
���|�� wrote:
Hello. I miss the good old days on almost every Linux that normal users cannot shutdown the machine. I have a SuSE 10.1 installation which has to be on for all the time. Every user go to click 'Desktop' -> 'Logout', then, instead of given this dialog: gopher://sdf.lonestar.org/I/users/weiwu/logout_prompt_1.png This dialog is given: gopher://sdf.lonestar.org/I/users/weiwu/logout_prompt_2.png
What I want is dialog 1. What I have is dialog 2.
Can I achieve it?
My Chinese isn't very good, so those pictures don't tell me much, however you can configure the KDE desktop to requires root password for shutdown & reboot. You can also change the permissions for /sbin/halt.
--
Hi, in Personal Settings/System Administration/Login Manager you'll find options to allow (or not) everybody to issue a shutdown either remotely or locally. You'll obviously need root password to change the settings :) Cheers, -mw
在 2006-08-27日的 14:15 +0200,Mello写道:
On 8/27/06, James Knott <james.knott@rogers.com> wrote:
张|武 wrote:
Hello. I miss the good old days on almost every Linux that normal users cannot shutdown the machine. I have a SuSE 10.1 installation which has to be on for all the time. Every user go to click 'Desktop' -> 'Logout', then, instead of given this dialog: gopher://sdf.lonestar.org/I/users/weiwu/logout_prompt_1.png This dialog is given: gopher://sdf.lonestar.org/I/users/weiwu/logout_prompt_2.png
What I want is dialog 1. What I have is dialog 2.
Can I achieve it?
Hi, in Personal Settings/System Administration/Login Manager you'll find options to allow (or not) everybody to issue a shutdown either remotely or locally.
You'll obviously need root password to change the settings :)
I could not find this option. Before I post this I tried to search for such settings in the following places: * permission of /sbin/shutdown * /etc/shutdown.allow (this file do not exist on SuSE 10.1) * Gnome Control Center (also checked System section, options include Beagle setting, GStreamer properties, Session, Date and Time, User management, Power options, Sound, Preferred applications. * GDM Setup (/opt/gnome/sbin/gdmsetup) (I checked all tabs) * SuSE Yast Could you give a bit more detail on how to find this option? -- 锐业软服(国内业务) http://www.realss.cn Real SoftService http://www.realss.com 销售咨询(Sales Department): 0086 592 20 99987 (Chinese, German, English) 国际业务(International Sales): 0086 10 8460 6011 (German and English) 联系:厦门大学科技园,嘉庚二号楼6楼 邮政:厦门大学2312号信箱(邮编361005)
张韡武 wrote:
在 2006-08-27日的 14:15 +0200,Mello写道:
张|武 wrote:
Hello. I miss the good old days on almost every Linux that normal users cannot shutdown the machine. I have a SuSE 10.1 installation which has to be on for all the time. Every user go to click 'Desktop' -> 'Logout', then, instead of given this dialog: gopher://sdf.lonestar.org/I/users/weiwu/logout_prompt_1.png This dialog is given: gopher://sdf.lonestar.org/I/users/weiwu/logout_prompt_2.png
What I want is dialog 1. What I have is dialog 2.
Can I achieve it? Hi, in Personal Settings/System Administration/Login Manager you'll find
On 8/27/06, James Knott <james.knott@rogers.com> wrote: options to allow (or not) everybody to issue a shutdown either remotely or locally.
You'll obviously need root password to change the settings :)
I could not find this option. Before I post this I tried to search for such settings in the following places: * permission of /sbin/shutdown
/sbin/shutdown is a symlink to /sbin/halt. You only have to change halt.
* /etc/shutdown.allow (this file do not exist on SuSE 10.1) * Gnome Control Center (also checked System section, options include Beagle setting, GStreamer properties, Session, Date and Time, User management, Power options, Sound, Preferred applications. * GDM Setup (/opt/gnome/sbin/gdmsetup) (I checked all tabs) * SuSE Yast Could you give a bit more detail on how to find this option?
I don't know about Gnome, but in KDE, it's under user management. Try changing /sbin/halt permissions. That should do it for you, as at least in KDE, that's what gets called.
On Sunday 27 August 2006 12:16, 张韡武 wrote:
Hello. I miss the good old days on almost every Linux that normal users cannot shutdown the machine. I have a SuSE 10.1 installation which has to be on for all the time. Every user go to click 'Desktop' -> 'Logout', then, instead of given this dialog: gopher://sdf.lonestar.org/I/users/weiwu/logout_prompt_1.png This dialog is given: gopher://sdf.lonestar.org/I/users/weiwu/logout_prompt_2.png
What I want is dialog 1. What I have is dialog 2.
Can I achieve it?
Edit /etc/sysconfig/displaymanager, and change DISPLAYMANAGER_SHUTDOWN to "root", then run /sbin/SuSEconfig and restart kdm
在 2006-08-27日的 15:04 +0200,Anders Johansson写道:
On Sunday 27 August 2006 12:16, 张韡武 wrote:
Hello. I miss the good old days on almost every Linux that normal users cannot shutdown the machine. I have a SuSE 10.1 installation which has to be on for all the time. Every user go to click 'Desktop' -> 'Logout', then, instead of given this dialog: gopher://sdf.lonestar.org/I/users/weiwu/logout_prompt_1.png This dialog is given: gopher://sdf.lonestar.org/I/users/weiwu/logout_prompt_2.png
What I want is dialog 1. What I have is dialog 2.
Can I achieve it?
Edit /etc/sysconfig/displaymanager, and change DISPLAYMANAGER_SHUTDOWN to "root", then run /sbin/SuSEconfig and restart kdm
As far as I know this change affects only the display manager, (also available as Yast option in local security policy). Current problem is that I wish to disable user from shutdown the computer when he logs out! 1. If I start gnome with startx, I click logout, I was asked if I wish to logout. 2. If I login remotely with XDMCP, I click logout, I was asked if I wish to logout. 3. If I start gnome with gdm, I click logout, I was asked if I wish to shutdown the computer, reboot the computer or logout. I need behavior of 1) and 2) AND still use gdm. Is there a way out? -- 锐业软服(国内业务) http://www.realss.cn Real SoftService http://www.realss.com 销售咨询(Sales Department): 0086 592 20 99987 (Chinese, German, English) 国际业务(International Sales): 0086 10 8460 6011 (German and English) 联系:厦门大学科技园,嘉庚二号楼6楼 邮政:厦门大学2312号信箱(邮编361005)
participants (4)
-
Anders Johansson
-
James Knott
-
Mello
-
张韡武