I'm asking for Linux-based Operating systems but this question can also be generalized to any other Operating systems. Question : As we all know that many processes can't run as a normal user but they could only run as a root user. for example, the installation and uninstallation process of any application (in Linux) have to be done as the root user, and the question is WHY, WHY NOT IT COULD BE DONE AS NORMAL USER? (moreover, OS can simply switch states of execution of process between User mode and Kernel mode when required, but why there is one more layer of differentiation done as root user and normal user?)
why root user have more previlage than normal user?
142 Views Asked by 54Y4N At
1
There are 1 best solutions below
Related Questions in PROCESS
- How to get Java running parameters from Spring Boot running inside container in pod where no ps exist
- Module not found: Error: Can't resolve 'child_process' in 'react-cerbos-demo/node_modules/cerbos'
- Launch URL from C# and detect when browser is closed
- Communicating Java and Python processes freeze after a while when using readline() but not input()
- Can someone tell me what's wrong with mi Task.await?
- Initial Fastapi request is not being processed and stays on hold
- running the ld command through rust only works 50% of the time
- Dropping duplicated rows
- Which child will execute first when you call fork() and wait() multiple times?
- How to kill number of processes in cpanel
- How is Unix signal propagated to PGID in namespaces and what is the impact of NSpgid on process signal handling?
- Why does sudo kill -15 on sh and docker-compose PIDs not stop Docker containers?
- Can Process.Exited event get fired but the process hang in the system?
- Powershell script can not run when invoke in .NET process
- How to quickly terminate child processes in Go and proceed only when killed
Related Questions in OPERATING-SYSTEM
- the end of the I/O operation is notified to the system by an interrupt.how much system time do the mentioned operations occupy?
- Problem on CPU scheduling algorithms in OS
- OS-wide text autocomplete service with popup
- mkssecreenshotmgr taking a screenshot
- How to prevent app from crashing on android emulator
- Is there a function to end a child process?
- Swapping a healthy and unallocated partition in Windows 10
- ubuntu OS : Why my battery is completely drained of in just 2 hours in suspend mode
- 1 filenames = [] 2 ----> 3 for file in os.zipfile('images.zip'):
- Worth it to access data by blocks on modern OS/hardware?
- How does outlook disable screenshot
- How can I enable my app to access a specific partition directory for reading and writing without showing popup to user?
- Exception of type 'System.Exception' was thrown. Error in Cosmos Project
- Maximum CPU Voltage reading
- Java: get username from uid
Related Questions in USERMODE
- Are PowerPoint, Google Chrome, Visual Studio Code, Photoshop or a C program I write are all examples of Applications/User programs?
- Are the system calls the only way an Application/User program can request OS services for performing privileged operations?
- General protection fault when try to switch the processor to user mode
- why root user have more previlage than normal user?
- FreeRTOS MPU: privileged access to bss?
- How can I send a UNICODE_STRING from a Windows driver to a usermode client?
- Usermode CPU Data cache invalidation / flush on Linux (Cortex A53)
- sprintf is undefined for STM32
- QEMU Reboots on sysret
- How do I change the Default Home Directory of a user? - Xubuntu
- WinDBG hits the breakpoint but doesn't step through (User-mode)
- Implementing User Mode and Kernel Mode Switching in 64 bit UEFI OS
- Why my cpu seems to lose the ability to decode
- Link Error when Compile c program without kernel32.lib
- User mode driver with NDIS
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The reason why some processes can only be run as the root user is because they require privileged access to the system's resources and settings. This is done to ensure the security and stability of the operating system.
When a process runs with root privileges, it has access to all of the system's resources, including hardware devices and system files. This can be dangerous if the process is not trusted or if it is compromised by a malicious attacker. Running processes as a normal user provides an additional layer of protection against unauthorized access or malicious activity.
Additionally, running processes as a normal user helps to prevent accidental changes to the system. If a user accidentally runs a command that could cause harm to the system, such as deleting system files or modifying critical system settings, the impact is limited because the user does not have root privileges.
The distinction between root user and normal user also allows for more fine-grained control over the system. By limiting the privileges of normal users, system administrators can ensure that users only have access to the resources and settings that they need to perform their tasks.
In summary, the differentiation between root user and normal user is an important security measure that helps to protect the system against unauthorized access and malicious activity. While it may be inconvenient at times, it is necessary to maintain the security and stability of the operating system.