Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Bug/oddity when shutting down Knoppix 6.2 (CD)

  1. #1
    Junior Member registered user
    Join Date
    Jan 2006
    Location
    Dartmouth, Nova Scotia, Canada
    Posts
    17

    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

  2. #2
    Senior Member registered user
    Join Date
    May 2006
    Location
    Columbia, Maryland USA
    Posts
    1,631
    @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?

  3. #3
    Junior Member registered user
    Join Date
    Jan 2006
    Location
    Dartmouth, Nova Scotia, Canada
    Posts
    17
    None. Zip. Nada. Jack squat. Bugger all.

    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!

  4. #4
    Moderator Moderator
    Join Date
    Jan 2010
    Location
    Asheville, NC, USA
    Posts
    528
    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

  5. #5
    Senior Member registered user
    Join Date
    Feb 2010
    Posts
    198
    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

  6. #6
    Senior Member registered user
    Join Date
    Feb 2010
    Posts
    198
    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.

  7. #7
    Junior Member registered user
    Join Date
    Jan 2006
    Location
    Dartmouth, Nova Scotia, Canada
    Posts
    17
    Quote Originally Posted by krishna.murphy View Post
    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
    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?

  8. #8
    Junior Member registered user
    Join Date
    Jan 2006
    Location
    Dartmouth, Nova Scotia, Canada
    Posts
    17
    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.

  9. #9
    Moderator Moderator
    Join Date
    Jan 2010
    Location
    Asheville, NC, USA
    Posts
    528
    Quote Originally Posted by zsd View Post
    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.

  10. #10
    Senior Member registered user
    Join Date
    Feb 2010
    Posts
    198
    You are welcome. I noticed the thread was old too late anyway it might be helpful to someone else in the same situation

Page 1 of 2 12 LastLast

Similar Threads

  1. Monitor Shutting off & "Can't find Knoppix filesyst
    By Juntalis in forum General Support
    Replies: 2
    Last Post: 05-26-2008, 05:35 PM
  2. Knoppix Screen Resolution oddity
    By nnigam in forum General Support
    Replies: 0
    Last Post: 02-09-2007, 07:55 PM
  3. Newbie, help, plz! Knoppix is shutting down my ethernet card
    By attorney2004 in forum Hardware & Booting
    Replies: 0
    Last Post: 02-05-2007, 01:51 AM
  4. shutting down knoppix on failed login attempt
    By someuser77 in forum Customising & Remastering
    Replies: 0
    Last Post: 11-30-2006, 09:01 PM
  5. Shutting down knoppix automatically
    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
  •  


Yottamaster 2 Bay External Hard Drive Enclosure, Aluminum USB-C 3.5

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

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

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

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

Inspur LSI 9300-8i Raid Card 12Gbps HBA HDD Controller High Profile

$15.98



Intel RAID Storage Controller RS3WC080 picture

Intel RAID Storage Controller RS3WC080

$180.00



Dell PERC H330 PCIe 3.0 x8 RAID Storage Controller 4Y5H1 High Profile picture

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

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

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

G-Technology G-Raid 8TB External Hard Drive Array 0G02492 USB3 Firewire

$89.99