~kedos-project/kedos/casper-precise

« back to all changes in this revision

Viewing changes to scripts/casper-bottom/44pk_allow_ubuntu

  • Committer: Drake Miller
  • Date: 2012-11-20 22:54:00 UTC
  • Revision ID: kedos.project@gmail.com-20121120225400-iyeepfisn0nru672
init

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
PREREQ=""
 
4
DESCRIPTION="Grant administrative PolicyKit privileges to default user..."
 
5
 
 
6
prereqs()
 
7
{
 
8
       echo "$PREREQ"
 
9
}
 
10
 
 
11
case $1 in
 
12
# get pre-requisites
 
13
prereqs)
 
14
       prereqs
 
15
       exit 0
 
16
       ;;
 
17
esac
 
18
 
 
19
. /scripts/casper-functions
 
20
 
 
21
log_begin_msg "$DESCRIPTION"
 
22
 
 
23
# configure PolicyKit in live session
 
24
mkdir -p /root/var/lib/polkit-1/localauthority/10-vendor.d
 
25
cat << EOF > /root/var/lib/polkit-1/localauthority/10-vendor.d/10-live-cd.pkla
 
26
# Policy to allow the livecd user to bypass policykit
 
27
[Live CD user permissions]
 
28
Identity=unix-user:$USERNAME
 
29
Action=*
 
30
ResultAny=no
 
31
ResultInactive=yes
 
32
ResultActive=yes
 
33
EOF
 
34
 
 
35
log_end_msg