LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-23-2004, 05:40 PM   #1
xianzai
Member
 
Registered: Oct 2003
Location: UK
Distribution: RHEL4
Posts: 54

Rep: Reputation: 15
Question Is Root the same as supervisor mode??


Hi all,

Quote:
An operating system relies on hardware to ensure protection of processes from each other.

Two different execution modi are required for hardware:

1: Kernel/Supervisor mode:

Allows unrestricted access to all resources.

2: User Mode

Only instructions not affecting others are allowed; sanity checks are enforced.
Is root the same as Kernel/supervisor mode, or am i getting confused?

Thanks!

M
 
Old 05-23-2004, 05:55 PM   #2
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
"root" is the superuser / supervisor / admin account, yes
 
Old 05-23-2004, 06:21 PM   #3
xianzai
Member
 
Registered: Oct 2003
Location: UK
Distribution: RHEL4
Posts: 54

Original Poster
Rep: Reputation: 15
Sorry, thats not what I meant. I know root is the same as the super user account.

"Instructions only allowed in the supervisor mode are called privileged instructions..."

Is this true? Its for a degree course on operating systems.
 
Old 05-23-2004, 07:18 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
You're getting confused. Root is a user account on the machine, whereas supervisor mode is a state that the computer's CPU can be in, generally used only when executing the operating system. They're totally different worlds. Accounts and permissions are creations of the operating system, whereas different CPU execution modes vary based on the hardware (for instance, i386 CPUs actually have 4 different modes, but *nix systems only ever use two of them).

When you execute a program as root, such as ls, it still operates in user mode on the CPU. There would be no reason to switch the CPU into priviliged mode just to run ls, regardless if root or someone else started it. However, root can implictly run code on the CPU in supervisor mode, for instance by loading a kernel module. The module will run as part of the kernel, and the kernel runs in supervisor mode most of the time.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Root login - graphical mode? niravdani Linux - Newbie 1 04-11-2005 12:16 PM
forcing program to run in root mode acidjuice Linux - Software 1 03-09-2005 07:17 AM
Super User mode, my root password doesn't work? kko88 Linux - Newbie 8 05-20-2003 06:01 PM
Underage drinking under supervisor of mom Eits0 General 24 08-28-2002 02:02 PM
Mounting root filesystem in read only mode. Ocran Linux - Software 3 07-01-2002 12:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:57 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