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
  •  


DELL PowerEdge R630 8SFF Server 2x E5-2680v4 2.4GHz =28 Cores 128GB H730 4xRJ45 picture

DELL PowerEdge R630 8SFF Server 2x E5-2680v4 2.4GHz =28 Cores 128GB H730 4xRJ45

$346.00



Dell PowerEdge R630 Server 2x E5-2680 V4 = 28 Cores S130 32GB RAM NEW 480GB SSD picture

Dell PowerEdge R630 Server 2x E5-2680 V4 = 28 Cores S130 32GB RAM NEW 480GB SSD

$250.99



Dell PowerEdge R630 Server 2x E5-2640v3 2.60Ghz 16-Core 64GB H330 picture

Dell PowerEdge R630 Server 2x E5-2640v3 2.60Ghz 16-Core 64GB H330

$182.65



Dell PowerEdge T620 8-Bay LFF Xeon E5-2660 0 2.20GHz 48GB NO HDD S110 Server picture

Dell PowerEdge T620 8-Bay LFF Xeon E5-2660 0 2.20GHz 48GB NO HDD S110 Server

$174.99



Dell PowerEdge R420 2 2.4 4C,16GB,8TB,RAID5,IDRAC7 ENT,2PSU picture

Dell PowerEdge R420 2 2.4 4C,16GB,8TB,RAID5,IDRAC7 ENT,2PSU

$125.00



Dell Poweredge R730xd 3.5 2x E5-2690 v3 2.6ghz 64gb H730 14x Trays 2x 1100w picture

Dell Poweredge R730xd 3.5 2x E5-2690 v3 2.6ghz 64gb H730 14x Trays 2x 1100w

$489.99



Dell PowerEdge R230 1U Server BOOTS Xeon E3-1270 v5 @ 3.60GHz 8GB RAM NO HDDS picture

Dell PowerEdge R230 1U Server BOOTS Xeon E3-1270 v5 @ 3.60GHz 8GB RAM NO HDDS

$79.99



Dell Poweredge R730xd LFF 14-Bay 2U Server | Choose Your CPU & RAM Config picture

Dell Poweredge R730xd LFF 14-Bay 2U Server | Choose Your CPU & RAM Config

$489.99



Dell Poweredge R630 2x Xeon E5-2680 v4 2.4ghz 28-Cores / 128gb / H330 / 2x 1TB picture

Dell Poweredge R630 2x Xeon E5-2680 v4 2.4ghz 28-Cores / 128gb / H330 / 2x 1TB

$324.99



Dell Poweredge R420 3.5

Dell Poweredge R420 3.5" 2x Xeon E5-2430 2.2ghz 12-Cores 24gb 2x 1TB 2x 550w

$169.99