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.
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.
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
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.