Thursday, May 16, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 1012  / 2 Years ago, mon, october 24, 2022, 8:32:35

I Have a application that need to run like root user, but I need that the enviroment, will be of an unprivileged user.



For example:



ipython, start by root (ubuntu) user; but I need that cann't run code with commands using sudo.



So, I believe that, maybe; if I run the job like root, but...HOW, only works for a "x" user.



Any idea?



Thanks


More From » permissions

 Answers
6

sudo works both ways, root can also act as a regular user
sudo -u userName -g groupName
I haven't used it but it looks like gksudo has the same functionality for desktop top applications


[#19512] Monday, October 24, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ilityushing

Total Points: 18
Total Questions: 100
Total Answers: 113

Location: Senegal
Member since Wed, May 13, 2020
4 Years ago
ilityushing questions
Sat, Apr 1, 23, 03:07, 1 Year ago
Wed, Mar 2, 22, 12:25, 2 Years ago
Tue, Jun 15, 21, 14:34, 3 Years ago
Sun, Aug 15, 21, 18:44, 3 Years ago
;