LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   USER SPACE vs ROOT (https://www.linuxquestions.org/questions/linux-desktop-74/user-space-vs-root-4175616740/)

or1on 10-31-2017 03:07 PM

USER SPACE vs ROOT
 
What the difference between both. If I create a script in root, how can I run in user space.

michaelk 10-31-2017 03:41 PM

root is a user just with different permissions (i.e all of them) then a regular user.

I think you actually mean kernel space.

https://en.wikipedia.org/wiki/User_space

http://rhelblog.redhat.com/2015/07/2...-kernel-space/

frankbell 10-31-2017 08:19 PM

You can create a script as root, then copy it to ~/[username], change the ownership and permissions according, and then [username] can run the script.

If you want all users to have access to it, I suppose you could put in a subdirectory under /opt, also making the correct adjustments to ownership and permissions. A web search isn't helping me out much here, but I did find this: https://serverfault.com/questions/96...r-or-opt/96420

User cannot and, indeed, should not have access to /root. Allowing creates a giant security hole.

ondoho 11-02-2017 02:09 AM

or1on, in linux speak, this is userspace:
Quote:

Originally Posted by michaelk (Post 5775711)

but i take it that's not what you meant - you mean the definition of an unprivileged, normal user vs. privileged user (usually root).


All times are GMT -5. The time now is 02:47 PM.