tylerpierce (tylerpierce) wrote,

In control

I finally got to the bottom of what I wanted my Linux box to do.

In short, I wanted to be able to mount USB drives as a normal user without being logged into a graphical session. This has been achieved.

There were two basic pieces I was missing:

  1. A volume manager. I ended up using ivman which does exactly what I want.
  2. Policy configuration. ConsoleKit, PolicyKit, and all the other byzantine additions to Linux are ultimately configurable.

The addition to /etc/PolicyKit/PolicyKit.conf:
  <match action="org.freedesktop.hal.storage.mount-removable">
    <match group="users">
      <return result="yes"/>

Decently obvious in retrospect, but virtually none of this is documented. On the first ssh session into the box, I need to start ivman as my UID. Everything else just works.

  • Post a new comment


    default userpic

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.