References Chapter 4: Access Control and Rootly Powers Manpages for su, find, pa
ID: 3600480 • Letter: R
Question
References Chapter 4: Access Control and Rootly Powers Manpages for su, find, passwd, chmod, chown, chgrp, getuid, getpid, sudo . Files: letc/passwd /etc/group Lab Questions You will need root access to answer these questions, so use your virtual machines. 1. What is the UID of the root account? 2. Why should the root account have a strong password? What is a strong password? 3. What is su? 4. What is sudo? Is it part of standard Unix? hat are stsuesithsu that sudo attempts 6. Name one file owned by each of the following users: 7. Can the users listed in the previous question login? How 8. What is the purpose of the three accounts listed in the 9. Who are the members of the wheel group in your 10. Find a file with the setuid bit set. Say what the file is and 11. Give a command to open a root shell if you are logged in to solve? daemon, bin, sys did you determine this? previous two questions? CentOS virtual machine? why it needs setuid. as a normal user (assume the user is allowed to do this).Explanation / Answer
[1] The root account UID[User id]/GID is 0 (zero).
[2] In unix an administrative operation (which more or else maps to a call to sudo or something similar). Out of a lot of reasons (including Tradition with a capital 'T'), you should never use the root account directly (except for emergencies); instead, you connect as a "normal user" who is registered (in the /etc/sudoers file or equivalent) as "capable of doing administrative tasks provided he enters his password".
Asking the user password explicitly for administrative operations avoids or at least reduces the nuisance implied by some cases of "lunch-time attacks
[3] The su (short for substitute user) command makes it possible to change a login session's owner without the owner having to first log out of that session. su command is:
su [options] [commands] [-] [username]
[4] Sudo [super user do] allows a system administrator to give certain users or groups of users the ability to run some or all commands as root while logging all commands and arguments.
Yes, It's part of Standard Unix.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.