LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 05-17-2022, 11:24 PM   #16
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Rep: Reputation: Disabled

Quote:
Originally Posted by rkelsen View Post
...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?
 
Old 05-18-2022, 12:24 AM   #17
mn_h4ck3r
LQ Newbie
 
Registered: Apr 2009
Posts: 10

Rep: Reputation: 0
I thinks it's very simple.
Use SUDO as run a command with root privileges,
SUDO SU is switching user to root.
 
Old 05-18-2022, 12:35 AM   #18
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
Quote:
Originally Posted by linux-man View Post
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....
 
1 members found this post helpful.
Old 05-18-2022, 12:37 AM   #19
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
Quote:
Originally Posted by mn_h4ck3r View Post
I thinks it's very simple.
Use SUDO as run a command with root privileges,
SUDO SU is switching user to root.
wrong, sudo or su is enough to switch to root. using sudo and su together is just bad practice.
 
Old 05-18-2022, 04:55 AM   #20
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,448
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
Quote:
Originally Posted by linux-man View Post
What's your definition of system space?
Anywhere the user doesn't need to be in order to achieve whatever they need to do.
Quote:
Originally Posted by linux-man View Post
When's the last time you used an anti virus on linux?
Never.
 
Old 05-18-2022, 02:29 PM   #21
half-word
LQ Newbie
 
Registered: Jan 2012
Location: Split, Croatia
Distribution: LinuxMint, Ubuntu, Debian, Devuan (+FreeBSD)
Posts: 24

Rep: Reputation: Disabled
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.

For details please see https://en.wikipedia.org/wiki/User_s...d_kernel_space
 
1 members found this post helpful.
Old 05-18-2022, 06:50 PM   #22
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by rkelsen View Post
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.
 
Old 05-18-2022, 07:13 PM   #23
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,448
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
Quote:
Originally Posted by half-word View Post
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 View Post
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.
 
1 members found this post helpful.
Old 05-19-2022, 12:45 AM   #24
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
Quote:
Originally Posted by half-word View Post
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 .....
 
1 members found this post helpful.
Old 05-19-2022, 08:24 AM   #25
half-word
LQ Newbie
 
Registered: Jan 2012
Location: Split, Croatia
Distribution: LinuxMint, Ubuntu, Debian, Devuan (+FreeBSD)
Posts: 24

Rep: Reputation: Disabled
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.
 
1 members found this post helpful.
Old 05-19-2022, 06:43 PM   #26
leclerc78
Member
 
Registered: Dec 2020
Posts: 169

Rep: Reputation: Disabled
Quote:
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.
 
Old 05-20-2022, 01:25 AM   #27
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
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.
 
1 members found this post helpful.
Old 05-25-2022, 12:09 PM   #28
half-word
LQ Newbie
 
Registered: Jan 2012
Location: Split, Croatia
Distribution: LinuxMint, Ubuntu, Debian, Devuan (+FreeBSD)
Posts: 24

Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
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.
 
1 members found this post helpful.
Old 05-26-2022, 12:52 AM   #29
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
Quote:
Originally Posted by half-word View Post
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.

Quote:
Originally Posted by half-word View Post
There are no "spaces" on disk,
And also there are no spaces on user.


Quote:
Originally Posted by half-word View Post
that's not a technical term at all.
just tell them => https://wiki.cs.huji.ac.il/wiki/Disk_space
 
Old 05-26-2022, 09:47 AM   #30
half-word
LQ Newbie
 
Registered: Jan 2012
Location: Split, Croatia
Distribution: LinuxMint, Ubuntu, Debian, Devuan (+FreeBSD)
Posts: 24

Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
This is just nonsense. Without context nothing has any meaning. Probably wikipedia can explain it too.
Have you actually read the article I linked to and tried the search I suggested?


Quote:
Originally Posted by pan64 View Post
And also there are no spaces on user.
Sorry? Could you rephrase that?


Quote:
Originally Posted by pan64 View Post
"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.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I can not find answer of this question. Please post helpful answer. pritammt Linux - Newbie 8 05-30-2014 05:43 AM
LXer: Wikimedia to Sloan: Thanks a million, thanks a million, thanks a million LXer Syndicated Linux News 0 03-26-2008 02:50 PM
LXer: Linux distro for women? Thanks, but no thanks LXer Syndicated Linux News 0 09-28-2007 04:00 PM
what is the diffrence between smbmount and smbmnt,Please answer me!Thanks! whepin Linux - Networking 1 12-20-2001 12:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration