Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

I need the answer as soon as possible Problem 6: Unix access control In Unix, every process has a real user id (ruid), an effective

I need the answer as soon as possible image text in transcribed

Problem 6: Unix access control In Unix, every process has a real user id (ruid), an effective user id (euid), and a saved user id (suid). Processes with an euid of O have special root privileges. a. If a process with user id n forks to create another process, what user id does the new process have? (Hint: it's the same answer for euid, ruid, and suid.) b. If a process with euid n makes a setuid system call, what possible euids can the process run with after the call, in each of the following situations: a. Before: euid = n > 0, saved user id suid=m and real user id ruid = m. After:? b. Before: n=0 After:? c. In qmail, most modules run under separate user ids. Similarly, each Android application runs in a separate process using a separate user id. From a security standpoint, what is the advantage of assigning separate uids instead of using the same uid for all? Explain. d. Why should the separate uids be non-zero? e. The Android zygote process that creates new processes runs as root. After forking to create a new process, setuid is normally called. Explain why it is important to call setuid? What security purpose does this serve? f. When a user wishes to change her password, she uses the passwd program. The Unix password file is usually public readable but (for obvious reasons) can only be written by processes with root privileges. a. How should the setuid bit be set on this passwd program? Explain how this lets a user change her password. b. Why does this make it important to write the passwd program source code carefully

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions