Skip to main content

Timeline for One prompt pkexec - two command

Current License: CC BY-SA 3.0

16 events
when toggle format what by license comment
Aug 13, 2021 at 16:57 answer added Luny Cipres timeline score: 6
Mar 24, 2018 at 4:57 answer added TinyRickHole timeline score: 1
Feb 6, 2018 at 2:24 history tweeted twitter.com/StackUnix/status/960700750765678592
Feb 5, 2018 at 0:38 vote accept Hamlet
Feb 5, 2018 at 0:33 comment added Hamlet @JeffSchaller yes I can do it. Problem's opening twice windows where I must enter root password.
Feb 4, 2018 at 23:39 comment added Jeff Schaller Untested; can you run both commands under one shell? pkexec sh -c “virsh... ; /home/user/program”
Feb 4, 2018 at 21:31 comment added Hamlet that's why I thought the best way is to use polkit (gui with root privileges)
Feb 4, 2018 at 21:25 comment added thrig running a root program connecting to your user X11 might be a little bit tricky, though there's probably other questions about that on this site
Feb 4, 2018 at 21:17 comment added Hamlet in start.sh is: 1st command: virsh which allow me set network to guest (for root). 2nd command: run app like gnome-boxes (for root the same as above) Why I need run/open both command via root? I 've to run this command as root bc then I can mount usb device. Simple user can't do that. For example: "sudo virsh net-star =/= virsh net start" <- these are different network space
Feb 4, 2018 at 21:05 comment added thrig what exactly is in start.sh and what exactly needs to be run as root?
Feb 4, 2018 at 21:03 comment added Hamlet I added to sudo nano /etc/sudoers: %sudo ALL = (root) NOPASSWD: /home/Ham/.config/folder/start.sh Next I ran my .desktop app (it has Exec=/home/Ham/.config/folder/start.sh) and it didn'y working. When I run from my terminal that command /home/Ham/.config/folder/start.sh then it work. I don't understand what I do wrong..
Feb 4, 2018 at 20:41 comment added Hamlet @thrig i tried use sudo without any effect. I changed I changed chown file on root and doesn't. Could you show some example used twice sudo in one script?
Feb 4, 2018 at 19:38 comment added thrig do you really need to use pkexec, or could you use instead sudo which I know has a window on authentication or can be configured to allow NOPASSWD for certain commands
Feb 4, 2018 at 18:26 answer added Zic timeline score: 1
Feb 4, 2018 at 18:10 review First posts
Feb 4, 2018 at 19:29
Feb 4, 2018 at 18:09 history asked Hamlet CC BY-SA 3.0