aeric Expert Licensed User Longtime User Aug 9, 2021 #1 How do I run a GUI app in Ubuntu linux with sudo and do no prompt the user to enter password? I have run.command in application directory and myapp.desktop on desktop but I don't know how to make it run with admin rights. When I double click myapp.desktop it runs but no admin rights. Without admin rights, my app cannot work with serial ports.
How do I run a GUI app in Ubuntu linux with sudo and do no prompt the user to enter password? I have run.command in application directory and myapp.desktop on desktop but I don't know how to make it run with admin rights. When I double click myapp.desktop it runs but no admin rights. Without admin rights, my app cannot work with serial ports.
Sandman Expert Licensed User Longtime User Aug 9, 2021 #2 Last part of first answer should give you some help: Startup script with sudo in Ubuntu 16.10 I need to start a script and a binary file from /usr/bin at startup with sudo/root privileges. I've tried many guides from this forum but nothing worked (rc.local and systemd style, Upstart) - mayb... askubuntu.com Upvote 0
Last part of first answer should give you some help: Startup script with sudo in Ubuntu 16.10 I need to start a script and a binary file from /usr/bin at startup with sudo/root privileges. I've tried many guides from this forum but nothing worked (rc.local and systemd style, Upstart) - mayb... askubuntu.com
LucaMs Expert Licensed User Longtime User Aug 9, 2021 #3 "Startup script with sudo in Ubuntu". Please, try to translate "sudo" from italian and think that today is August, 9. Upvote 0
"Startup script with sudo in Ubuntu". Please, try to translate "sudo" from italian and think that today is August, 9.
H Heuristx Active Member Licensed User Longtime User Aug 9, 2021 #4 I hate to think what "grep" may mean in some languages. Upvote 0
OliverA Expert Licensed User Longtime User Aug 9, 2021 #5 aeric said: How do I run a GUI app in Ubuntu linux with sudo and do no prompt the user to enter password? Click to expand... aeric said: Without admin rights, my app cannot work with serial ports. Click to expand... Doing sudo without password seems to be a sledgehammer approach to your issue. I would first try to give the user rights to the serial port(s), see https://www.b4x.com/android/forum/threads/serial-in-linux.84714/post-536563 . Note: You may need to research the proper group to add the user to for your distro. If you do want to use sudo w/o password (which I really do not recommend), see the following link for direction https://askubuntu.com/questions/192050/how-to-run-sudo-command-with-no-password Upvote 0
aeric said: How do I run a GUI app in Ubuntu linux with sudo and do no prompt the user to enter password? Click to expand... aeric said: Without admin rights, my app cannot work with serial ports. Click to expand... Doing sudo without password seems to be a sledgehammer approach to your issue. I would first try to give the user rights to the serial port(s), see https://www.b4x.com/android/forum/threads/serial-in-linux.84714/post-536563 . Note: You may need to research the proper group to add the user to for your distro. If you do want to use sudo w/o password (which I really do not recommend), see the following link for direction https://askubuntu.com/questions/192050/how-to-run-sudo-command-with-no-password
aeric Expert Licensed User Longtime User Aug 9, 2021 #6 LucaMs said: "sudo" from italian Click to expand... You mean I am sweating ? ? Heuristx said: "grep" may mean in some languages. Click to expand... What language? Let me try Google translate. Upvote 0
LucaMs said: "sudo" from italian Click to expand... You mean I am sweating ? ? Heuristx said: "grep" may mean in some languages. Click to expand... What language? Let me try Google translate.
H Heuristx Active Member Licensed User Longtime User Aug 9, 2021 #7 aeric said: You mean I am sweating ? ? What language? Let me try Google translate. Click to expand... Sounds like Volapük to me. Upvote 0
aeric said: You mean I am sweating ? ? What language? Let me try Google translate. Click to expand... Sounds like Volapük to me.
aeric Expert Licensed User Longtime User Aug 9, 2021 #8 Sandman said: Last part of first answer should give you some help: Startup script with sudo in Ubuntu 16.10 I need to start a script and a binary file from /usr/bin at startup with sudo/root privileges. I've tried many guides from this forum but nothing worked (rc.local and systemd style, Upstart) - mayb... askubuntu.com Click to expand... Yes, I tried that. It is part of the solution. I am now doing more testing such as using different script in different path. Upvote 0
Sandman said: Last part of first answer should give you some help: Startup script with sudo in Ubuntu 16.10 I need to start a script and a binary file from /usr/bin at startup with sudo/root privileges. I've tried many guides from this forum but nothing worked (rc.local and systemd style, Upstart) - mayb... askubuntu.com Click to expand... Yes, I tried that. It is part of the solution. I am now doing more testing such as using different script in different path.
aeric Expert Licensed User Longtime User Aug 9, 2021 #9 OliverA said: I would first try to give the user rights to the serial port(s), see https://www.b4x.com/android/forum/threads/serial-in-linux.84714/post-536563 Click to expand... Alright I’ll try this out. Upvote 0
OliverA said: I would first try to give the user rights to the serial port(s), see https://www.b4x.com/android/forum/threads/serial-in-linux.84714/post-536563 Click to expand... Alright I’ll try this out.
LucaMs Expert Licensed User Longtime User Aug 9, 2021 #10 aeric said: You mean I am sweating ? ? Click to expand... Yes - "sudo" perché è Agosto (it's August) ? Upvote 0
aeric said: You mean I am sweating ? ? Click to expand... Yes - "sudo" perché è Agosto (it's August) ?
aeric Expert Licensed User Longtime User Aug 9, 2021 #11 LucaMs said: Yes - "sudo" perché è Agosto (it's August) ? Click to expand... I don’t get you. Is it summer in August? Upvote 0
LucaMs said: Yes - "sudo" perché è Agosto (it's August) ? Click to expand... I don’t get you. Is it summer in August?
aeric Expert Licensed User Longtime User Aug 9, 2021 #13 OliverA said: Doing sudo without password seems to be a sledgehammer approach to your issue. I would first try to give the user rights to the serial port(s), see https://www.b4x.com/android/forum/threads/serial-in-linux.84714/post-536563 . Note: You may need to research the proper group to add the user to for your distro. If you do want to use sudo w/o password (which I really do not recommend), see the following link for direction https://askubuntu.com/questions/192050/how-to-run-sudo-command-with-no-password Click to expand... It works! Thank you so much! ?? Upvote 0
OliverA said: Doing sudo without password seems to be a sledgehammer approach to your issue. I would first try to give the user rights to the serial port(s), see https://www.b4x.com/android/forum/threads/serial-in-linux.84714/post-536563 . Note: You may need to research the proper group to add the user to for your distro. If you do want to use sudo w/o password (which I really do not recommend), see the following link for direction https://askubuntu.com/questions/192050/how-to-run-sudo-command-with-no-password Click to expand... It works! Thank you so much! ??
aeric Expert Licensed User Longtime User Aug 9, 2021 #14 Heuristx said: We sweat in August. Click to expand... Hot and rain in my country all year. So we don’t only sweat in August. ? Upvote 0
Heuristx said: We sweat in August. Click to expand... Hot and rain in my country all year. So we don’t only sweat in August. ?