Folks,
I am logged in as user 'a' and I can run synaptic as user 'b' by
Code: Select all
su b
sudo synaptic
Code: Select all
su b
sudo synaptic
Code: Select all
chris ALL = NOPASSWD: ALL
Code: Select all
alias pacman='sudo apt $1'
alias pamac='sudo synaptic-pkexec &'
Code: Select all
#!/bin/bash
su b && sudo synaptic
Code: Select all
su b -S /bin/sh -c /home/b/synaptic.sh (script to launch synaptic)
or
gksudo -u b 'synaptic'
Code: Select all
su b -c '/usr/bin/synaptic-pkexec'
Code: Select all
[Configuration]
AdminIdentities=unix-user:b;unix-user:a
I deleted the post because the su command requires a password but doesn't provide a graphical prompt window; I was looking for a better solution but I got distracted. FWIW using sudo's -U option with an entry in /etc/sudoers to obviate the need for a password would probably be the way but using pkexec alone makes more sense.sickpig wrote:Then I swear I saw Head_on_a_Stick's post advising belowExcellent piece of advise. Bullseye. I can't c that post anymore (it was probably this message will self destruct once u see it kind of a thing)Code: Select all
su b -c '/usr/bin/synaptic-pkexec'
done, though I don't entirely agree that it would have discouraged anyone.Head_on_a_Stick wrote:And please remove the "-tnx to HOAS" bit from the thread title, it may interfere with the SEO effect of the [SOLVED] tag and possibly also discourage the other people who helped out in this thread.