this post was submitted on 15 Jan 2025
19 points (100.0% liked)
linux4noobs
4015 readers
10 users here now
linux4noobs
Noob Friendly, Expert Enabling
Whether you're a seasoned pro or the noobiest of noobs, you've found the right place for Linux support and information. With a dedication to supporting free and open source software, this community aims to ensure Linux fits your needs and works for you. From troubleshooting to tutorials, practical tips, news and more, all aspects of Linux are warmly welcomed. Join a community of like-minded enthusiasts and professionals driving Linux's ongoing evolution.
Seeking Support?
- Mention your Linux distro and relevant system details.
- Describe what you've tried so far.
- Share your solution even if you found it yourself.
- Do not delete your post. This allows other people to see possible solutions if they have a similar problem.
- Properly format any scripts, code, logs, or error messages.
- Be mindful to omit any sensitive information such as usernames, passwords, IP addresses, etc.
Community Rules
- Keep discussions respectful and amiable. This community is a space where individuals may freely inquire, exchange thoughts, express viewpoints, and extend help without encountering belittlement. We were all a noob at one point. Differing opinions and ideas is a normal part of discourse, but it must remain civil. Offenders will be warned and/or removed.
- Posts must be Linux oriented
- Spam or affiliate links will not be tolerated.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
First off
sudostands for "super user do" i.e "do something as the super user". The super user is root.sudo --shellstarts a shell with super user / root privileges.sudo someCommandrunssomeCommandwith super user privileges.In windows, for a really long time, your user had admin rights. When windows Vista came along, Microsoft had finally understood that that was a pretty bad idea and copied linux (or unix? whatever). That popup you get when installing stuff asking you for admin access? That's a form of
sudo someCommandwith an interface built on top. You'll get to see that in linux desktop environments too for example when you want to install new packages or update your system.The reason why it's a bad idea to always have admin access without a password, is that if you are ever infected or you forget your computer unlock, somebody can't just install something at system level. It's a small hurdle, but every little bit counts. It also allows you to separate users between those that do have the right to login as the root user and those that don't.
Users without super user access are quite common as an additional form of security because if they are infested or a process being run by them is, then it's more difficult for them to infect other users. For example if you have a user called
chatserverthat runs theircd(IRC daemon) process, if your daemon (aka service) is hacked, the most damage they should be able to do is extract the data thechatserveruser has access to. They won't be able to access your userdata as it's stored in/home/yourusername, which can only be accessed by theyourusernameuser and theyourusernamegroup (plus ofcourseroot).It's not a 100% fault-proof system, but it's better than stepping into your house and having access to the master bedroom and your safe without having the key to it.
Anti Commercial-AI license
It's actually "switch user" or "substitute user" do. By default, the user is root.
Thank you for the clear explanation!