-
Junior Member
registered user
Bug/oddity when shutting down Knoppix 6.2 (CD)
It seems that lxsession-logout checks with /usr/share/PolicyKit/policy/org.freedesktop.hal.power-management.policy to make sure it is allowed to shutdown or reboot the computer.
I created a second account on a Knoppix 6.2 CD system, put it in the same groups as the knoppix account, gave it the same line as koppix in /etc/sudoers, and then changed USER="knoppix" and GROUP="knoppix" in /etc/init.d/knoppix-startx. Then I logged out of the knoppix account and was automagically logged back in to the new account. I did a recursive diff of the two home directories and didn't see any differences which seemed relevant.
However, unlike the knoppix account, the new account can't shut down the system via a call to lxsession-logout; all that happens is that the new account is logged out and then automatically logged back in again.
polkit-auth shows that the knoppix account has (among many other things) org.freedesktop.hal.power-management.reboot and org.freedesktop.hal.power-management.reboot-multiple-sessions, whereas my new account does not have the -multiple-sessions capability. Further, strace'ing lxsession-logout shows that the -multiple-sessions capability is the one desired.
Q1: given there is only one session, why does lxsession-logout look for org.freedesktop.hal.power-management.reboot-multiple-sessions
Q2: why does the knoppix user get this capability, but not my new account?
If anyone can shed some light on this, I'd appreciate it.
(I can work around this by modifying usr/share/PolicyKit/policy/org.freedesktop.hal.power-management.policy, but I prefer to not mess with things like that if I don't really need to.)
Thanks.
Jim
-
Senior Member
registered user
@Jim
I notice you've not received any response to your PolicyKit questions.
I have some similar but simpler PolicyKit concerns and wonder if you've
found any useful documentation that applies to Knoppix or Debian systems.
I find in both my Knoppix 6.2.1 and Ubuntu 10.04 systems, a number of
inexplicable .xsession-error entries that relate to PolicyKit errors.
I'd at least like to understand these. I'd even settle for an opt-out
alternative to not bother with this capability, whatever it is. But I
don't know how to do this in an intelligent way.
So, have you found any good information in this regard?
-
Junior Member
registered user
None. Zip. Nada. Jack squat. Bugger all. ![Smile](images/smilies/icon_smile.gif)
Sorry I can't help you (or me) here. Except for creating a bootable system with some of my own software on it (for which I use knoppix), I normally use Slackware, which Just Works (TM). I usually have an Ubuntu system sitting around, and while Ubuntu usually also Just Works for me, I must admit that when it doesn't, I find that tracking down and fixing the problem usually involves some cursing and pulling hair out. Bah!
-
Wish I had some great insight to offer. Perhaps the solution to the creation of a list of errors you don't care about is to send them away; it's easy enough to make a symlink to /dev/null and then they'll just vanish, right?
Ciao!
Krishna
-
Senior Member
registered user
There is a line in /etc/init.d/knoppix-autoexec which creates /etc/hostname with one specified knoppix-autoexec. Try to change it with your new user name. I dont say this will work, but I've heard many weared problems with wrongly set hostname. So it's worth the try
-
Senior Member
registered user
Discard my previous post - I think your problem lies in /etc/PolicyKit/PolicyKit.conf
<define_admin_auth user="root|knoppix"/>
<!-- user knoppix is always returned as authorized -->
<match user="knoppix">
<return result="yes"/>
Add your new user name there and restart hal, make sure your in power group too. You should then be able to shutdown and reboot
Last edited by mecho; 07-23-2010 at 09:04 AM.
-
Junior Member
registered user
![Quote](images/misc/quote_icon.png)
Originally Posted by
krishna.murphy
Wish I had some great insight to offer. Perhaps the solution to the creation of a list of errors you don't care about is to send them away; it's easy enough to make a symlink to /dev/null and then they'll just vanish, right?
Ciao!
Krishna
![Mr. Green](images/smilies/icon_mrgreen.gif)
Who said they have a list of errors they don't care about? Were you replying to another post in another forum, or is there a comprehension problem going on here?
-
Junior Member
registered user
Mecho,
thanks for your response. I'm not sure I like this way of doing things (modifying that file to allow another user to shut down the system), but I guess it is better than what I did (modifying /usr/share/PolicyKit/policy/org.freedesktop.hal.power-management.policy). In any case, I appreciate you pointing out that solution. I thought I had done a grep -r looking for 'knoppix' to find where that user might be getting special treatment, but apparently I missed that one.
Cheers.
-
![Quote](images/misc/quote_icon.png)
Originally Posted by
zsd
Who said they have a list of errors they don't care about? Were you replying to another post in another forum, or is there a comprehension problem going on here?
Just an idea in response to:
I find in both my Knoppix 6.2.1 and Ubuntu 10.04 systems, a number of
inexplicable .xsession-error entries that relate to PolicyKit errors.
I'd at least like to understand these. I'd even settle for an opt-out
alternative to not bother with this capability, whatever it is. But I
don't know how to do this in an intelligent way.
-
Senior Member
registered user
You are welcome. I noticed the thread was old too late
anyway it might be helpful to someone else in the same situation
Similar Threads
-
By Juntalis in forum General Support
Replies: 2
Last Post: 05-26-2008, 05:35 PM
-
By nnigam in forum General Support
Replies: 0
Last Post: 02-09-2007, 07:55 PM
-
By attorney2004 in forum Hardware & Booting
Replies: 0
Last Post: 02-05-2007, 01:51 AM
-
By someuser77 in forum Customising & Remastering
Replies: 0
Last Post: 11-30-2006, 09:01 PM
-
By TheSpider in forum General Support
Replies: 3
Last Post: 02-04-2004, 05:00 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
![Yottamaster 2 Bay External Hard Drive Enclosure, Aluminum USB-C 3.5](/store/img/Mt8AAOSwOfJmlQSc/s-l225//Yottamaster-2-Bay-External-Hard-Drive-Enclosure-Al.jpg)
Yottamaster 2 Bay External Hard Drive Enclosure, Aluminum USB-C 3.5" HDD RAID
$49.00
![LaCie 5BIG NETWORK 2 5-bay RAID HDD Bay [ SEE DESCRIPTION ] picture](/store/img/-rcAAOSwnWxl-CWp/s-l225//LaCie-5BIG-NETWORK-2-5-bay-RAID-HDD-Bay-SEE-DESCRI.jpg)
LaCie 5BIG NETWORK 2 5-bay RAID HDD Bay [ SEE DESCRIPTION ]
$119.99
![OWC MERCURY ELITE PRO DUAL THUNDERBOLT 2 USB 3 4TB RAID EXTERNAL HDD USE 6 DAYS picture](/store/img/jvMAAOSwJ2xmg0JM/s-l225//OWC-MERCURY-ELITE-PRO-DUAL-THUNDERBOLT-2-USB-3-4TB.jpg)
OWC MERCURY ELITE PRO DUAL THUNDERBOLT 2 USB 3 4TB RAID EXTERNAL HDD USE 6 DAYS
$123.49
![ORICO 5 Bay Raid Enclosure USB3.0 SATA External Hard Drive Enclosure Up to 80TB picture](/store/img/m2IAAOSwmz5kyNFT/s-l225//ORICO-5-Bay-Raid-Enclosure-USB3-0-SATA-External-Ha.jpg)
ORICO 5 Bay Raid Enclosure USB3.0 SATA External Hard Drive Enclosure Up to 80TB
$115.59
![Inspur LSI 9300-8i Raid Card 12Gbps HBA HDD Controller High Profile picture](/store/img/De0AAOSwfoNlZ6Jx/s-l225//Inspur-LSI-9300-8i-Raid-Card-12Gbps-HBA-HDD-Contro.jpg)
Inspur LSI 9300-8i Raid Card 12Gbps HBA HDD Controller High Profile
$15.98
![Intel RAID Storage Controller RS3WC080 picture](/store/img/wIwAAOSwNetmk-rQ/s-l225//Intel-RAID-Storage-Controller-RS3WC080.jpg)
Intel RAID Storage Controller RS3WC080
$180.00
![Dell PERC H330 PCIe 3.0 x8 RAID Storage Controller 4Y5H1 High Profile picture](/store/img/C7YAAOSwLYJl3nQQ/s-l225//Dell-PERC-H330-PCIe-3-0-x8-RAID-Storage-Controller.jpg)
Dell PERC H330 PCIe 3.0 x8 RAID Storage Controller 4Y5H1 High Profile
$14.99
![WD TB My Book Duo Desktop RAID External Hard Drive 0TB NO DRIVES picture](/store/img/Zm8AAOSwM0VmO6v~/s-l225//WD-TB-My-Book-Duo-Desktop-RAID-External-Hard-Drive.jpg)
WD TB My Book Duo Desktop RAID External Hard Drive 0TB NO DRIVES
$42.00
![ORICO 5 Bay Raid USB3.0 to SATA External Hard Drive Enclosure for 3.5'' HDD LOT picture](/store/img/m2IAAOSwmz5kyNFT/s-l225//ORICO-5-Bay-Raid-USB3-0-to-SATA-External-Hard-Driv.jpg)
ORICO 5 Bay Raid USB3.0 to SATA External Hard Drive Enclosure for 3.5'' HDD LOT
$134.39
![G-Technology G-Raid 8TB External Hard Drive Array 0G02492 USB3 Firewire picture](/store/img/WhMAAOSw8M5mlWyt/s-l225//G-Technology-G-Raid-8TB-External-Hard-Drive-Array-.jpg)
G-Technology G-Raid 8TB External Hard Drive Array 0G02492 USB3 Firewire
$89.99