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.
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872
Rep:
Quote:
Originally Posted by rkelsen
...the benefits of separating the user from system space, and the level of stability and security this concept brings. It's the reason why you don't really need antivirus software on Linux.
What's your definition of system space? When's the last time you used an anti virus on linux?
What's your definition of system space? When's the last time you used an anti virus on linux?
system space is required by the system to be able to work. (space for log files, temp files, installing packages ...).
User space is required by the user to store his/her private stuff.
From my side I can reinstall the whole system without touching my personal files.
I have never used any antivirus software on my linux. Or probably I scanned something once....
I believe there has been a slight misunderstanding here. There are no such things as "user space" and "system space" concerning user privileges on a Linux/Unix system. The operating systems term "user space" is contrasted to "kernel space" and it's a memory protection issue.
It's not necessary at all. There is a certain category of people who seem to have the attitude that, "it's my computer, it should do what I say!"
Those people have failed to grasp the benefits of separating the user from system space, and the level of stability and security this concept brings. It's the reason why you don't really need antivirus software on Linux.
I guess you would say that ubuntu, fedora, mint, and many others are configured wrong then. By default, for the benefit of the home user, most of the distros have sudo configured to allow the first user created on the system to use sudo and not ever need to su to root. In fact most of them have the root account locked out by default.
Other users do not normally get the use of sudo unless and until the admin explicitly adds them to the group that allows its use.
Quote:
100% correct. Insecure configuration of sudo is a big problem. It's no different to running as root all day.
It is different, in that even though available, when a user needs to have root privileges, they must use sudo to gain those privileges. When logged in as root it is easy to forget and a careless command or typo can cause disaster.
Having to enter sudo with each command reminds the user that they are using escalated privileges and to not do so constantly.
There are no such things as "user space" and "system space" concerning user privileges on a Linux/Unix system.
Yes, we can debate the semantics, like my daughter saying that pasta and spaghetti are not the same thing when we tell her what's cooking.
User space is under /home.
System space is everything outside that.
Quote:
Originally Posted by computersavvy
I guess you would say that ubuntu, fedora, mint, and many others are configured wrong then. By default, for the benefit of the home user, most of the distros have sudo configured to allow the first user created on the system to use sudo and not ever need to su to root. In fact most of them have the root account locked out by default.
I'm not anti-sudo. The distributions you mentioned are probably not configured the way which was mentioned by a previous poster.
I believe there has been a slight misunderstanding here. There are no such things as "user space" and "system space" concerning user privileges on a Linux/Unix system. The operating systems term "user space" is contrasted to "kernel space" and it's a memory protection issue.
You mixed two different things. What you mentioned is some kind of responsibility, the code which is part of the kernel or not.
But we are talking about disk space, which is split into two parts again, user space which is used by the user (/home/user usually) and the system space, what is required and used by system components like cron, printer, package management, other daemons .....
I posted a link on Wikipedia which says what the term "user space" means in computer science. Whoever thinks that term is also legitimate for dividing disk space is also free to send a link to any reliable source (university, encyclopedia, CS magazine...) which says so. I'm always ready to learn new things but always require proof of their veracity.
Yes, we can debate the semantics, like my daughter saying that pasta and spaghetti are not the same thing when we tell her what's cooking.
We can say that spaghetti is a subset of pasta.
I think your daughter is more correct.
By the way I have a headache reading half way thru the posts.I worked 33+ years on another computer platform, retired now, so only Sudo for me, thanks.
Yes, these are two different things:
1. the disk space (storage) is split into two parts, one is used by the system and the second is used by the user.
2. (by half-word) the code execution is split into two parts, some code is executed in the user space (or user land) and others belong to the kernel space. It is not about the disk, but memory and process (device driver) execution.
So for example "user space" has no any real meaning without context.
So for example "user space" has no any real meaning without context.
Sorry for being so stubborn about this, but please enter "user space" into Wikipedia search. You will get its real meaning without context. It's the page I've linked to.
I could also start saying root owned files are called "potatoes" and user owned files are "maracujas" but it wouldn't mean anything to anyone else. There is no generally accepted term for those, although just saying "system files or directories" and "user files or directories" is quite usual. There are no "spaces" on disk, that's not a technical term at all. The closest you get to it is having a separate /home partition.
Sorry for being so stubborn about this, but please enter "user space" into Wikipedia search. You will get its real meaning without context. It's the page I've linked to.
This is just nonsense. Without context nothing has any meaning. Probably wikipedia can explain it too.
"Disk space" is a proper term which means disk capacity available for use; it just means "quantity". It's also not further divided until any other "spaces". The page you linked makes both very evident.
If there IS something you could call "user space" and "system space" on disk, it could be said that the latter is space occupied by filesystem metadata like inodes etc. The former would be the available space an user sees. Any user, including root and daemons.
Those are basics of computer science. Now I'm aware that one doesn't need to know how things function to use them, but some basics should be needed. It's like with the car, you may not necessarily know how to change a tyre or fix the engine, but you should at least say how are those things called. It wouldn't be great if you call road assistance and say something "that thingamabob has stopped working" or "a thingamajig has blown" so the repairmen have no clue what they must bring to help you.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.