Your file should look like:
Code:
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->
<!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN"
"http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd">
<!-- See the manual page PolicyKit.conf(5) for file format -->
<config version="0.1">
<match user="root">
<return result="yes"/>
</match>
<match user="markand">
<return result="yes"/>
</match>
<define_admin_auth group="wheel"/>
</config>
Then create a file and copy
org.freedesktop.consolekit.pkla in directory:
/usr/local/etc/polkit-1/localauthority/50-local.d and the file
org.freedesktop.consolekit.pkla must have the following content:
Code:
[Restart]
Identity=unix-group:operator
Action=org.freedesktop.consolekit.system.restart
ResultAny=yes
ResultInactive=yes
ResultActive=yes
[Shutdown]
Identity=unix-group:operator
Action=org.freedesktop.consolekit.system.stop
ResultAny=yes
ResultInactive=yes
ResultActive=yes
Add markand user group: operator and/or wheel in:
/etc/group
Code:
pw usermod markand -G wheel,operator
Add in /etc/fstab:
Code:
proc /proc procfs rw 0 0
fdesc /dev/fd fdescfs rw 0 0
linprocfs /compat/linux/proc linprocfs rw 0 0
and in /etc/sysctl.conf:
and in /etc/devfs.conf:
Code:
# Commonly used by many ports
link cd0 cdrom
link cd0 dvd
# Allow a user in the wheel group to query the smb0 device
#perm smb0 0660
# Allow members of group operator to cat things to the speaker
#own speaker root:operator
#perm speaker 0660
# Allow all users to access CD's
perm /dev/acd0 0666
perm /dev/acd1 0666
perm /dev/cd0 0666
perm /dev/cd1 0666
# Allow all USB Devices to be mounted
perm /dev/da0 0666
perm /dev/da1 0666
perm /dev/da2 0666
perm /dev/da3 0666
# Misc other devices
own /dev/lpt0 root:cups
perm /dev/lpt0 0666
own /dev/lpt1 root:cups
perm /dev/lpt1 0666
perm /dev/pass0 0666
perm /dev/xpt0 0666
perm /dev/uscanner0 0666
perm /dev/video0 0666
perm /dev/dvb/adapter0/demux0 0666
perm /dev/dvb/adapter0/dvr 0666
perm /dev/dvb/adapter0/frontend0 0666
Then we add an entry to a set of rules on devfs.rules:
Code:
[devfsrules_common=7]
add path 'ad[0-9]*' mode 666
add path 'ada[0-9]*' mode 666
add path 'da[0-9]*' mode 666
add path 'acd[0-9]*' mode 666
add path 'cd[0-9]*' mode 666
add path 'mmcsd[0-9]*' mode 666
add path 'pass[0-9]*' mode 666
add path 'xpt[0-9]*' mode 666
add path 'ugen[0-9]*' mode 666
add path 'usbctl' mode 666
add path 'usb/*' mode 666
add path 'lpt[0-9]*' mode 666
add path 'ulpt[0-9]*' mode 666
add path 'unlpt[0-9]*' mode 666
add path 'fd[0-9]*' mode 666
add path 'uscan[0-9]*' mode 666
add path 'video[0-9]*' mode 666
add path 'dvb/*' mode 666
Activate our new set of rules in /etc/rc.conf:
Code:
devfs_system_ruleset="devfsrules_common"
Enjoy! Good luck.