Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 02-01-2012
Member
 
Join Date: Nov 2011
Posts: 61
Why System policy preventing shutdown of Ubuntu 9.10?

My system is powered by Ubuntu 9.10. as I am trying to shut down the system , an error message which can be stated as follow.
?System policy prevents shutting down the system while multiple users are logged in?
Then system was prompting for the administrator password. Can you tell me any method to prevent the same?
Reply With Quote
  #2  
Old 02-01-2012
Member
 
Join Date: May 2011
Posts: 397
Re: Why System policy preventing shutdown of Ubuntu 9.10?

The below mentioned command will let you know about the users who are logged in on the computer.
Code:
top -b -n 1|tail -n +8|awk '{print $2}'|sort|uniq
also let me know whether you have seen real user rather than of one who are trying to shutdown. The users who are into the home directory are having the definition of real user.
Reply With Quote
  #3  
Old 02-01-2012
Member
 
Join Date: May 2011
Posts: 392
Re: Why System policy preventing shutdown of Ubuntu 9.10?

There is no relation between the users who are logged on the system. hence I don?t think so ordinary users will not be able to shutdown the system until and unless you are not aware of admin password.
Reply With Quote
  #4  
Old 02-01-2012
Member
 
Join Date: Nov 2011
Posts: 61
Re: Why System policy preventing shutdown of Ubuntu 9.10?

Ok thanks a lot for replying? can you tell me how can I disable authentication check? Or is there any way to store the authentication on my system???
Reply With Quote
  #5  
Old 02-01-2012
Member
 
Join Date: May 2011
Posts: 433
Re: Why System policy preventing shutdown of Ubuntu 9.10?

You can resolve the issue by simply adding the user into Sudoer group and I think that is the only way one can shutdown the computer without using the password. However you have to execute following command on the terminal.
Code:
sudo shutdown
also you can make shutdown button which you can place on the panel and execute the sudo shutdown.
Reply With Quote
  #6  
Old 02-01-2012
Member
 
Join Date: Jun 2011
Posts: 482
Re: Why System policy preventing shutdown of Ubuntu 9.10?

The simplest solution which I can tell you over here that you should add the desire user into the ?users? group. Once done you have to create the policykit rule so that it can allow users of group permission to shut down and another one for restart as other user is logged on the system.
Code:
# /var/lib/polkit-1/localauthority/50-local.d/shutdown.pkla
[system shutdown privs]
Identity=unix-group:users
Action=org.freedesktop.consolekit.system.stop-multiple-users
ResultAny=no
ResultInactive=no
ResultActive=yes
Code:
# /var/lib/polkit-1/localauthority/50-local.d/restart.pkla
[system restart privs]
Identity=unix-group:users
Action=org.freedesktop.consolekit.system.restart-multiple-users
ResultAny=no
ResultInactive=no
ResultActive=yes
Reply With Quote
  #7  
Old 02-01-2012
Member
 
Join Date: May 2008
Posts: 246
Re: Why System policy preventing shutdown of Ubuntu 9.10?

If you wanted to define users to grant permission to identify line rather than of adding them into group. You can use the following command.
Code:
Identity=unix-user:fu;unix-user:bar
The rules can be created by using following command.
Code:
sudo /etc/init.d/hal restart
Reply With Quote
  #8  
Old 02-01-2012
Member
 
Join Date: Jun 2011
Posts: 380
Re: Why System policy preventing shutdown of Ubuntu 9.10?

Well I am suggesting following command on Terminal.
Code:
sudo gedit /usr/share/polkit-1/actions/org.freedesktop.consolekit.policy
you have to copy and paste the below mentioned commands on the resulting file.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
"http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">

<policyconfig>

<action id="org.freedesktop.consolekit.system.stop">
<description>Stop the system</description>
<message>System policy prevents stopping the system</message>
<defaults>
<allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
</action>

<action id="org.freedesktop.consolekit.system.stop-multiple-users">
<description>Stop the system when multiple users are logged in</description>
<message>System policy prevents stopping the system when other users are logged in</message>
<defaults>
<allow_inactive>no</allow_inactive>
<!--<allow_active>auth_admin_keep</allow_active>-->
<allow_active>yes</allow_active>
</defaults>
</action>

<action id="org.freedesktop.consolekit.system.restart">
<description>Restart the system</description>
<message>System policy prevents restarting the system</message>
<defaults>
<allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
</action>

<action id="org.freedesktop.consolekit.system.restart-multiple-users">
<description>Restart the system when multiple users are logged in</description>
<message>System policy prevents restarting the system when other users are logged in</message>
<defaults>
<allow_inactive>no</allow_inactive>
<!--<allow_active>auth_admin_keep</allow_active>-->
<allow_active>yes</allow_active>
</defaults>
</action>

</policyconfig>
It will be useful to do the normal shut down.
Reply With Quote
  #9  
Old 03-01-2012
Member
 
Join Date: Jul 2011
Posts: 348
Re: Why System policy preventing shutdown of Ubuntu 9.10?

I was also facing the same issue and I got mythtv-backend was running into back ground. I disabled the mythtv-backend and after that shutdown and restarted the computer and there was no prompt for the password. I hope it will help someone.
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Why System policy preventing shutdown of Ubuntu 9.10?"
Thread Thread Starter Forum Replies Last Post
A patch is preventing the system from starting. - Which one? Thalador Vista Help 7 14-11-2014 01:25 AM
How to Auto Shutdown PC in UBUNTU Operating System Computer_Freak Tips & Tweaks 1 05-03-2012 01:47 PM
?This installation is forbidden by system policy. contact your system administrator? Error message while installing the Corel Video Studio X3. Jaiya Windows Software 6 23-04-2011 10:23 PM
Solution for preventing W32/Zbot.QEE!tr from entering the system Common Networking & Security 5 16-01-2010 02:14 AM
A patch is preventing the system from starting. An update to the operating system was installed prior to the startup failure. alicia_bubbles Operating Systems 2 30-10-2009 08:57 AM


All times are GMT +5.5. The time now is 03:55 AM.