F5F Stay Refreshed Software Operating Systems Use the command prompt and type `sudo` followed by the program name. This grants administrative privileges.

Use the command prompt and type `sudo` followed by the program name. This grants administrative privileges.

Use the command prompt and type `sudo` followed by the program name. This grants administrative privileges.

Pages (2): 1 2 Next
X
xconnor01
Junior Member
16
09-27-2020, 12:47 AM
#1
I'm coming from Windows and need to launch "QT Creator" with admin privileges, but I'm unsure how to do it. The tutorial I tried didn't work. I can open programs like Firefox this way, but Qt Creator keeps loading without opening. It's the same with gsudo in the terminal. Firefox opens quickly, but Qt doesn't. Any advice would be greatly appreciated. Thank you.
X
xconnor01
09-27-2020, 12:47 AM #1

I'm coming from Windows and need to launch "QT Creator" with admin privileges, but I'm unsure how to do it. The tutorial I tried didn't work. I can open programs like Firefox this way, but Qt Creator keeps loading without opening. It's the same with gsudo in the terminal. Firefox opens quickly, but Qt doesn't. Any advice would be greatly appreciated. Thank you.

B
BloomingIris
Member
177
09-27-2020, 05:11 PM
#2
The main concern is understanding the differences between Linux and Windows, especially regarding permissions. Running programs as Root can lead to significant issues with access rights. Typically, you shouldn't install or execute anything as Root unless told otherwise.
B
BloomingIris
09-27-2020, 05:11 PM #2

The main concern is understanding the differences between Linux and Windows, especially regarding permissions. Running programs as Root can lead to significant issues with access rights. Typically, you shouldn't install or execute anything as Root unless told otherwise.

J
juju40
Member
75
09-28-2020, 07:39 PM
#3
You need to execute a terminal command from Qt Creator using sudo. Since you're working in C++, running it as root might help resolve access issues.
J
juju40
09-28-2020, 07:39 PM #3

You need to execute a terminal command from Qt Creator using sudo. Since you're working in C++, running it as root might help resolve access issues.

D
DontBadGirl2
Junior Member
12
09-28-2020, 11:02 PM
#4
To execute that command with root privileges, modify the exact instruction to resemble "sudo command." Running the whole app as root can be done by opening it in a terminal with sudo and moving it out of the way, or using gksu which launches it as root with a password prompt. Be aware this isn't the recommended way to run applications, as few need root access. Since you're referring to QT Creator, this might be a "make install" step. If this isn't required, avoid running unknown apps as root—it's a serious issue.
D
DontBadGirl2
09-28-2020, 11:02 PM #4

To execute that command with root privileges, modify the exact instruction to resemble "sudo command." Running the whole app as root can be done by opening it in a terminal with sudo and moving it out of the way, or using gksu which launches it as root with a password prompt. Be aware this isn't the recommended way to run applications, as few need root access. Since you're referring to QT Creator, this might be a "make install" step. If this isn't required, avoid running unknown apps as root—it's a serious issue.

L
149
10-05-2020, 03:04 PM
#5
Are you using Linux? You can install programs without needing root access. For example, you can open Firefox by typing "firefox" and it will work fine. If you need more permissions, you can use "sudo firefox." Just remember not to run every program with root privileges.
L
le_marseillais
10-05-2020, 03:04 PM #5

Are you using Linux? You can install programs without needing root access. For example, you can open Firefox by typing "firefox" and it will work fine. If you need more permissions, you can use "sudo firefox." Just remember not to run every program with root privileges.

D
dannypl
Member
135
10-07-2020, 03:40 AM
#6
For the sake of discussion, Flatpak and Snappy shouldn't need root access. I haven't tested them, so I don't know for sure. You can usually run most apps by installing them locally, but that's not the main point here. Anyway, I understand your concern—root is necessary only for a few commands, and you should be mindful of which ones you run.
D
dannypl
10-07-2020, 03:40 AM #6

For the sake of discussion, Flatpak and Snappy shouldn't need root access. I haven't tested them, so I don't know for sure. You can usually run most apps by installing them locally, but that's not the main point here. Anyway, I understand your concern—root is necessary only for a few commands, and you should be mindful of which ones you run.

S
SayNoToNWO
Posting Freak
879
10-08-2020, 12:22 PM
#7
Do you use Linux? The method matters when setting up a program—installing with a local account via SU or SUDO maintains the app’s permissions linked to that user, whereas running as ROOT ties it directly to the root account and blocks other users from executing it.
S
SayNoToNWO
10-08-2020, 12:22 PM #7

Do you use Linux? The method matters when setting up a program—installing with a local account via SU or SUDO maintains the app’s permissions linked to that user, whereas running as ROOT ties it directly to the root account and blocks other users from executing it.

L
Lorddoom139
Posting Freak
956
10-08-2020, 12:53 PM
#8
Running an installer with su -c is similar to switching to a root account and launching the app from there. I believe sudo achieves the same, without keeping permissions intact—it executes the command as root. ghaith@ghaith-laptop
L
Lorddoom139
10-08-2020, 12:53 PM #8

Running an installer with su -c is similar to switching to a root account and launching the app from there. I believe sudo achieves the same, without keeping permissions intact—it executes the command as root. ghaith@ghaith-laptop

I
iProps
Junior Member
29
10-08-2020, 02:37 PM
#9
It seems the issue might vary by distribution, though it appears unlikely on Ubuntu/Debian. I typically use SUDO with apt-get to install software, and afterward my local account works perfectly.
I
iProps
10-08-2020, 02:37 PM #9

It seems the issue might vary by distribution, though it appears unlikely on Ubuntu/Debian. I typically use SUDO with apt-get to install software, and afterward my local account works perfectly.

B
boriagot
Member
112
10-08-2020, 10:14 PM
#10
Yes, but the installation is done as Root. Use SUDO to act as Super User (root). In short, root, execute this command. It doesn’t require launching the program you’re installing.
B
boriagot
10-08-2020, 10:14 PM #10

Yes, but the installation is done as Root. Use SUDO to act as Super User (root). In short, root, execute this command. It doesn’t require launching the program you’re installing.

Pages (2): 1 2 Next