[Hardy] casper should configure PolicyKit to avoid asking paswd for user ubuntu in live mode
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
casper (Ubuntu) |
Fix Released
|
Medium
|
Martin Pitt |
Bug Description
Reproducible:
1.- Start Ubuntu live
2.- Click on NetworkManager to configure network with static IP address (or open System -> Admin -> Network)
All options are grayed and if you click unlock button, PolicyKit ask for ubuntu user password (that is empty).
Solution:
In /usr/share/
#!/bin/sh
PREREQ=""
DESCRIPTION=
. /scripts/
prereqs()
{
echo "$PREREQ"
}
case $1 in
# get pre-requisites
prereqs)
prereqs
exit 0
;;
esac
log_begin_msg "$DESCRIPTION"
# configure PolicyKit in live session
cat << EOF > /root/etc/
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->
<!DOCTYPE pkconfig PUBLIC "-//freedesktop
"http://
<!-- See the manual page PolicyKit.conf(5) for file format -->
<config version="0.1">
<match user="root">
<return result="yes"/>
</match>
<!-- MaX 4.0: don't ask password for user in live session -->
<match user="$USERNAME">
<return result="yes"/>
</match>
<define_
</config>
EOF
log_end_msg
Related branches
Changed in casper: | |
assignee: | nobody → pitti |
importance: | Undecided → High |
status: | New → In Progress |
Changed in casper: | |
milestone: | none → ubuntu-8.04-beta |
Changed in casper: | |
status: | In Progress → Fix Committed |
Thank you for taking the time to report this bug and helping to make Ubuntu better. This bug did not have a package associated with it, which is important for ensuring that it gets looked at by the proper developers. You can learn more about finding the right package at [WWW] https:/ /wiki.ubuntu. com/Bugs/ FindRightPackag e . I have classified this bug as a bug in casper.