Public bug reported:

Ubuntu 18.04
Package version 1.2.63-0ubuntu6

If it helps, I done the following to get it working:

Create executable:

/usr/bin/system-config-samba-pkexec

#!/bin/sh
pkexec "/usr/sbin/system-config-samba" "$@"


create:

/usr/share/polkit-1/actions/com.ubuntu.pkexec.system-config-samba.policy

<?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/policyconfig.dtd";>
<policyconfig>

  <action id="com.ubuntu.pkexec.system-config-samba">
    <message>Authentication is required to run Samba Config</message>
    
    <icon_name>system-config-samba</icon_name>
    <defaults>
      <allow_any>auth_admin</allow_any>
      <allow_inactive>auth_admin</allow_inactive>
      <allow_active>auth_admin</allow_active>
    </defaults>
    <annotate 
key="org.freedesktop.policykit.exec.path">/usr/sbin/system-config-samba</annotate>
    <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
  </action>

</policyconfig>

change launcher from gksu system-config-samba to system-config-samba-
pkexec

** Affects: system-config-samba (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: gksu samba

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1772127

Title:
  Launcher uses gksu which is now depreciated

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/system-config-samba/+bug/1772127/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to