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
  •  


WAVLINK RAID 2 Bay Hard Drive Docking Station SATA 2.5/3.5'' SSD HDD Enclosure picture

WAVLINK RAID 2 Bay Hard Drive Docking Station SATA 2.5/3.5'' SSD HDD Enclosure

$68.39



Broadcom 9600-24i Tri-Mode RAID Controller 4.0 NVMe SAS SATA NEW 05-50111-01003 picture

Broadcom 9600-24i Tri-Mode RAID Controller 4.0 NVMe SAS SATA NEW 05-50111-01003

$639.69



G-Technology G-SPEED Studio XL 48TB Thunderbolt 2 Storage picture

G-Technology G-SPEED Studio XL 48TB Thunderbolt 2 Storage

$200.00



Intel VROC Premium RAID Controller Card PCIe Add-On Module VROCPREMMOD picture

Intel VROC Premium RAID Controller Card PCIe Add-On Module VROCPREMMOD

$265.00



2-Bay/4-Bay Hard Drive Enclosure for 3.5

2-Bay/4-Bay Hard Drive Enclosure for 3.5"/2.5'' SATA HDD/SSD 10Gbps USB-C 3.2

$75.99



Broadcom LSI 9305-16i 12Gbps SAS-3 PCIe x8 HBA 16-Ports Raid Controller picture

Broadcom LSI 9305-16i 12Gbps SAS-3 PCIe x8 HBA 16-Ports Raid Controller

$64.99



Dell 3KDWX PERC H755 12G 8GB Cache Front RAID Controller picture

Dell 3KDWX PERC H755 12G 8GB Cache Front RAID Controller

$999.99



PCI to 4 Ports SATA Controller RAID CARD Pci sata Sil3114 Supports 3TBx4 HDD picture

PCI to 4 Ports SATA Controller RAID CARD Pci sata Sil3114 Supports 3TBx4 HDD

$18.90



EMC VNXe3100 EPE 12-LFF 3.5

EMC VNXe3100 EPE 12-LFF 3.5" NAS Storage Array 12*3TB SAS HDD 2*303-137-000D

$224.99



Broadcom 9600-24i RAID Controller PCIe Gen 4.1 Tri-Mode NEW 05-50111-01004 picture

Broadcom 9600-24i RAID Controller PCIe Gen 4.1 Tri-Mode NEW 05-50111-01004

$649.99