Changeset 3da508c
- Timestamp:
- 12/15/2013 06:16:12 PM (10 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 7.10, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- 31ff9f72
- Parents:
- bef99d8
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
introduction/welcome/changelog.xml
rbef99d8 r3da508c 48 48 <itemizedlist> 49 49 <listitem> 50 <para>[fernando] - Gparted from a menu: "ssh-askpass" and "pkexec". 51 Fixes <ulink url="&blfs-ticket-root;4454">#4454</ulink>.</para> 52 </listitem> 53 <listitem> 50 54 <para>[igor] - Update to libisoburn-1.3.4. Fixes 51 55 <ulink url="&blfs-ticket-root;4451">#4451</ulink>.</para> -
xsoft/other/gparted.xml
rbef99d8 r3da508c 160 160 application from the menu, further applications and configurations are 161 161 necessary. Examples of applications that may be used: 162 <ulink url="http://people.debian.org/~kov/gksu">gksu and gksudo</ulink>,162 <ulink url="http://people.debian.org/~kov/gksu">gksu</ulink>, 163 163 <ulink url="https://launchpad.net/kdesudo">kdesudo</ulink>, or 164 164 <ulink url="https://github.com/tarakbumba/xdg-su">xdg-su</ulink>. 165 Other solution is to use <application>pkexec</application>, from 166 <xref linkend="polkit"/>, but some configuration is necessary. 165 167 Another simple solution is the <application>GTK+</application> based 166 <application>gnome-ssh-askpass2</application> (does not need 167 <application>GNOME</application>) that comes with 168 <xref linkend="openssh"/>, under the 169 <filename class="directory">contrib</filename> directory in the source. 170 </para> 168 <application>ssh-askpass</application> (does not need 169 <application>GNOME</application>). Below, we describe these two 170 alternatives: "ssh-askpass" and "pkexec". 171 </para> 172 173 <sect3 role="ssh-askpass"> 174 <title>ssh-askpass</title> 175 <para> 176 To optionally use <application>ssh-askpass</application>, you need 177 <xref linkend="sudo"/> and <xref linkend="openssh"/> to be installed. 178 Uncompress the <xref linkend="openssh"/> tarball and, inside the 179 source directory, install <application>ssh-askpass</application> by 180 running the following commands: 181 </para> 182 183 <screen><userinput>cd contrib && 184 make gnome-ssh-askpass2</userinput></screen> 185 186 <para> 187 Now, as the <systemitem class="username">root</systemitem> user: 188 </para> 189 190 <screen role="root"><userinput>install -v -d -m755 /usr/lib/openssh/contrib && 191 install -v -m755 gnome-ssh-askpass2 /usr/lib/openssh/contrib && 192 ln -sv -f contrib/gnome-ssh-askpass2 /usr/lib/openssh/ssh-askpass</userinput></screen> 193 194 <para> 195 Still as the <systemitem class="username">root</systemitem> user, 196 configure <xref linkend="gparted"/> and <xref linkend="sudo"/> to 197 use <application>ssh-askpass</application>: 198 </para> 199 200 <screen role="root"><userinput>cp -v /usr/share/applications/gparted.desktop /usr/share/applications/gparted.desktop.back && 201 sed -i 's/Exec=/Exec=sudo -A /' /usr/share/applications/gparted.desktop && 202 203 cat >> /etc/sudo.conf << "EOF" && 204 # Path to askpass helper program 205 Path askpass /usr/lib/openssh/ssh-askpass 206 EOF 207 chmod -v 0644 /etc/sudo.conf</userinput></screen> 208 209 <para> 210 Now, clicking in the menu item for Gparted, a dialog appears in the 211 screen, asking for the administrator password. Any graphical program 212 requiring root privileges can be run using "sudo -A <program>", 213 e.g. from a terminal, from a desktop launcher, or including it in the 214 desktop file. 215 </para> 216 217 </sect3> 218 219 <sect3 role="pkexec"> 220 <title>pkexec</title> 221 <para> 222 To optionally use <application>pkexec</application>, you need 223 <xref linkend="polkit-gnome"/> or <xref linkend="lxpolkit"/>, and 224 <xref linkend="consolekit"/> installed with support to 225 <xref linkend="linux-pam"/> and <xref linkend="polkit"/>. 226 As the <systemitem class="username">root</systemitem> user, 227 configure <xref linkend="gparted"/> and <xref linkend="polkit"/> with 228 the following commands: 229 </para> 230 231 <screen role="root"><userinput>cp -v /usr/share/applications/gparted.desktop /usr/share/applications/gparted.desktop.back && 232 sed -i 's:/usr/sbin/gparted:/usr/sbin/gparted_polkit' /usr/share/applications/gparted.desktop && 233 234 cat > /usr/sbin/gparted_polkit << "EOF" && 235 #!/bin/bash 236 if [ $(which pkexec) ]; then 237 pkexec --disable-internal-agent "/usr/sbin/gparted" "$@" 238 else 239 /usr/sbin/gparted "$@" 240 fi 241 EOF 242 chmod -v 0755 /usr/sbin/gparted_polkit</userinput></screen> 243 244 <para> 245 Still as the <systemitem class="username">root</systemitem> user, 246 configure <xref linkend="polkit"/> and <xref linkend="gparted"/> to 247 use <application>pkexec</application>: 248 </para> 249 250 <screen role="root"><userinput>cat > /usr/share/polkit-1/actions/org.freedesktop.policykit.pkexec.policy << "EOF" 251 <?xml version="1.0" encoding="UTF-8"?> 252 <!DOCTYPE policyconfig PUBLIC 253 "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN" 254 "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd"> 255 <policyconfig> 256 257 <action id="org.freedesktop.policykit.pkexec.run-gparted"> 258 <description>Run GParted</description> 259 <message>Authentication is required to run GParted</message> 260 <defaults> 261 <allow_any>no</allow_any> 262 <allow_inactive>no</allow_inactive> 263 <allow_active>auth_admin_keep</allow_active> 264 </defaults> 265 <annotate key="org.freedesktop.policykit.exec.path">/usr/sbin/gparted</annotate> 266 <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate> 267 </action> 268 269 </policyconfig> 270 EOF 271 chmod -v 0644 /usr/share/polkit-1/actions/org.freedesktop.policykit.pkexec.policy</userinput></screen> 272 273 <para> 274 Now, clicking in the menu item for Gparted, a dialog appears in the 275 screen, asking for the administrator password. Any graphical program 276 requiring root privileges can be run using "pkexec <program>", 277 e.g. from a terminal, from a desktop launcher, or including it in the 278 desktop file. 279 </para> 280 281 </sect3> 282 171 283 </sect2> 172 284
Note:
See TracChangeset
for help on using the changeset viewer.