LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 10-31-2017, 03:07 PM   #1
or1on
LQ Newbie
 
Registered: Oct 2017
Posts: 22

Rep: Reputation: Disabled
USER SPACE vs ROOT


What the difference between both. If I create a script in root, how can I run in user space.
 
Old 10-31-2017, 03:41 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,669

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
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/
 
Old 10-31-2017, 08:19 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,307
Blog Entries: 28

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

Last edited by frankbell; 10-31-2017 at 08:21 PM.
 
Old 11-02-2017, 02:09 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
or1on, in linux speak, this is userspace:
Quote:
Originally Posted by michaelk View Post
but i take it that's not what you meant - you mean the definition of an unprivileged, normal user vs. privileged user (usually root).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Unable to read the updated buffer in kernel space from user space raju_1234 Linux - Embedded & Single-board computer 0 06-20-2012 01:50 AM
Free user space pages of different user processes from inside kernel space trueskyte Linux - Kernel 1 10-22-2010 04:37 PM
Division of Logical Memory Space in to User Space and Kernel Space shreshtha Linux - Newbie 2 01-14-2010 09:59 AM
how to call socket prog code written in user space from kernel space???HELP kurt2 Programming 2 07-15-2009 09:56 PM
Not enough space for root directory on a drive with 50g free space??? auoq Linux - Newbie 1 10-13-2004 12:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 06:23 AM.

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