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): Previous 1 2
R
Rintck
Junior Member
33
10-08-2020, 11:06 PM
#11
I understand SUDO's purpose clearly. Imagine logging in as ROOT to install an app—its files would inherit strict permissions. When you log out and back in as the regular user, the app might fail to run properly since it lacks ownership rights. But if you log in as yourself, SUDO handles the installation, giving you full control and allowing the app to operate smoothly from your account without needing SUDO.
R
Rintck
10-08-2020, 11:06 PM #11

I understand SUDO's purpose clearly. Imagine logging in as ROOT to install an app—its files would inherit strict permissions. When you log out and back in as the regular user, the app might fail to run properly since it lacks ownership rights. But if you log in as yourself, SUDO handles the installation, giving you full control and allowing the app to operate smoothly from your account without needing SUDO.

D
derk4321
Senior Member
482
10-11-2020, 01:25 AM
#12
That's not the process. Running apt-get as root or sudo is identical, but what apt-get actually does is pull the data from the deb file and save it in the / directory. As a regular user you can't modify that folder directly. It then assigns +x permissions to non-group members, allowing anyone to run the file. This happens regardless of whether you install via root or manually. The package manager ensures proper group access. Another example: ghaith@brainiac ~ master whoami ghaith ghaith@brainiac sudo whoami [sudo] password for ghaith: root ghaith@brainiac
D
derk4321
10-11-2020, 01:25 AM #12

That's not the process. Running apt-get as root or sudo is identical, but what apt-get actually does is pull the data from the deb file and save it in the / directory. As a regular user you can't modify that folder directly. It then assigns +x permissions to non-group members, allowing anyone to run the file. This happens regardless of whether you install via root or manually. The package manager ensures proper group access. Another example: ghaith@brainiac ~ master whoami ghaith ghaith@brainiac sudo whoami [sudo] password for ghaith: root ghaith@brainiac

E
Elina_Aada20
Member
141
10-16-2020, 05:33 AM
#13
It's interesting, this happened to me a few years ago when I was just starting out. I'm curious if it was my mistake or something else that caused the issue. I recall a severe headache while using an app, which was installed with root privileges and set to run only for the root user.
E
Elina_Aada20
10-16-2020, 05:33 AM #13

It's interesting, this happened to me a few years ago when I was just starting out. I'm curious if it was my mistake or something else that caused the issue. I recall a severe headache while using an app, which was installed with root privileges and set to run only for the root user.

Pages (2): Previous 1 2