Hi, all This may very well be a case of me not knowing what the heck I'm doing, and I apologize in advance if that's the case... I'm trying to install PolicyKit-0.3 (the tarball at http://people.freedesktop.org/~david/dist/PolicyKit-0.3.tar.gz, not the latest development version from git). It builds and installs w no errors; it creates /etc/pam.d/polkit, it creates an empty subdir /etc/PolicyKit/policy and a file /etc/PolicyKit/PolicyKit.conf w 6 lines of text in it. I created a user, group "polkit" before building anything. It doesn't create a directory "/usr/share/PolicyKit/policy", though.
I decided to RTFM and created the directory myself (install -d -m755 -opolkit -gpolkit /usr/share/PolicyKit/policy/). I placed in it the example at freedesktop.org: http://hal.freedesktop.org/docs/PolicyKit/polkit-conf.html naming it "example.policy". When I type polkit-list-actions, it responds: ** (process:15928): WARNING **: Error loading policy files from /usr/share/PolicyKit/policy: /usr/share/PolicyKit/policy/sample.policy:7: parse error: parsing aborted polkit-policy-file-validate gives the same error. If I trim example.policy so it contains nothing more than: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE policyconfig PUBLIC "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN" "http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd"> <policyconfig> </policyconfig> then neither tool returns an error. I had hoped to find some example .policy files and figure out how PolicyKit worked - including how to structure .policy files, etc. - my knowledge of XML is extremely limited; it wouldn't surprise me if the problem I'm seeing here stemmed from my omitting something blatantly obvious to someone who knows what they're doing or something else along those lines. I've searched everywhere I could think of and have not, as of yet, been able to get this working, nor have I been able to find any example .policy files other than the one noted earlier. I'm hoping that someone can shed some light on what's occurring here and too can tell me where I can find some more .policy files to experiment with && learn from. For whatever it's worth, here's how I built PolicyKit: ./configure --prefix=/usr --sysconfdir=/etc \ --libexecdir=/usr/lib/PolicyKit --localstatedir=/var \ --with-polkit-user=polkit --with-polkit-group=polkit && make followed by make install Thanks in advance. I would <really> like to get this (PolicyKit) to work; I think it's a terrific idea... - Larry -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
