Linux
• Can you reboot the system as a normal user? Explain youranswer. justify your answer.
“Use more than 250 words
Solution
Answer:-
yes normal user can reboot
I changed /etc/sudoers so that every user that is in the admingroup can execute the following commands without being ask for apassword.
sudo haltsudo rebootsudo poweroff
You just need to add the following lines to /etc/sudoers
## Admin user group is allowed to execute halt and reboot %admin ALL=NOPASSWD: /sbin/halt, /sbin/reboot, /sbin/poweroff
and add yourself to the admin group.
If you want only one user to be able to do this just remove the%admin and replace it with usernamelike this
## user
OR
OR