Results 1 to 9 of 9

Thread: Why System policy preventing shutdown of Ubuntu 9.10?

  1. #1
    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?

  2. #2
    Join Date
    May 2011
    Posts
    398

    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.

  3. #3
    Join Date
    May 2011
    Posts
    397

    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.

  4. #4
    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???

  5. #5
    Join Date
    May 2011
    Posts
    434

    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.

  6. #6
    Join Date
    Jun 2011
    Posts
    484

    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

  7. #7
    Join Date
    May 2008
    Posts
    250

    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

  8. #8
    Join Date
    Jun 2011
    Posts
    383

    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.

  9. #9
    Join Date
    Jul 2011
    Posts
    350

    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.

Similar Threads

  1. Replies: 7
    Last Post: 14-11-2014, 01:25 AM
  2. How to Auto Shutdown PC in UBUNTU Operating System
    By Computer_Freak in forum Tips & Tweaks
    Replies: 1
    Last Post: 05-03-2012, 01:47 PM
  3. Replies: 6
    Last Post: 23-04-2011, 10:23 PM
  4. Solution for preventing W32/Zbot.QEE!tr from entering the system
    By Common in forum Networking & Security
    Replies: 5
    Last Post: 16-01-2010, 02:14 AM
  5. Replies: 2
    Last Post: 30-10-2009, 08:57 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,728,359,786.40993 seconds with 17 queries