Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Linux hugo-pc 4.19.0-5-amd64 #1 SMP Debian 4.19.37-5+deb10u2 (2019-08-08) x86_64 GNU/Linux
In Debian this used to be in a package in the "non-free" repository called "firmware-linux-nonfree". I had to look it up, but that particular firmware seems to be now in "firmware-misc-nonfree" and "firmware-linux-nonfree" now seems to be a meta package.
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
Quote:
Originally Posted by hugo.account
...Is there a way to give my current user the permissions denied here?
Yes, you could use "sudo" to do that, but it would be quicker and easier to run apt under the root user account instead (and that's likely the reason for the "permission denied" error messages).
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
Yes, but it would defeat the point of having a user privilege system if you made your normal unprivileged user account a "root-like" account. So if you care about your system's security, then I would advise against doing that. It's even worse running a web browser with root privileges. So it's a bad idea to make a "root-like" account, and while I could tell you how to do it; I'm not going to encourage it by saying how to do it. It's just a bad idea, period.
When you use the su command to "switch" to the root user account, it still requires knowing what root's password is. Whereas sudo on the other hand is designed to solve this problem, and therefore you would just use your normal unprivileged user account's password instead. sudo also creates it's own auditing trail in it's own log file, so if you did attempt to run a command your normal user hasn't been sudo'd to be allowed to run, sudo would record that in it's own log file.
So for example, if you had an office network, and you had a network administrator, their deputy, and say some technicians under them that needed to be able to start/stop services, install/update software; then you could "sudo" them permission to do just those things that would otherwise require root user privileges to do using sudo. Therefore they would not need to know what the root user password is, and could not do anything else outside of starting/stopping services, installing/updating software, and sudo would once again record it if they did try using sudo to do anything outside of the permissions they'd be granted with sudo - this is the problem sudo was designed to solve. Some distributions like the *buntu's use sudo to actually replace the root user account, which is an abuse of sudo IMHO - as that's not what it was designed for.
So just switch to root with the su command (eg. su -) unless you have good reason to configure sudo and sudo your normal user.
Is there a way to just make the user I use all the time to be the root? I don't like not being permitted to do everything on my own machine.
To expand on jsbjsb001's post above - it's a common fallacy of users new to UNIX like systems to assume that they are not being "permitted" to do things on their own computer, due to running as a restricted user as standard.
Aside from it being dangerous, as described above, many user space software is simply not designed to run as the root user and will break if you attempt to do so or cause some session/configuration files to effectively become owned by root - meaning that the user will encounter errors when trying to run that programme.
It will become that appealing shortcut which invariably leads to a broken mess.
It's better to think about the operations when you would need to be root and that will be in your case only when doing package management tasks - and then think of all the occasions when you don't need to be - everything else.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.