Saturday, April 20, 2024
 Popular · Latest · Hot · Upcoming
33
rated 0 times [  33] [ 0]  / answers: 1 / hits: 12812  / 2 Years ago, mon, june 6, 2022, 4:27:29

Why do we use sudo to perform a terminal command as an administrative? Why isn't it admin or something else? Is there a reason for sudo?


More From » sudo

 Answers
2

From Wikipedia:




sudo is a program for Unix-like
computer operating systems that allows users to run programs with the
security privileges of another user (normally the superuser, or
root). Its name is a concatenation of "su" (substitute user) and
"do", or take action.



Unlike the su command, users typically supply their own password to
sudo rather than the root password. After authentication, and if the
/usr/local/etc/sudoers (sometimes found at /etc/sudoers) configuration
file permits the user access, then the system will invoke the
requested command. The sudoers configuration file enables a huge
amount of configurability, including but not limited to: enabling root
commands only from the invoking terminal; not requiring a password for
certain commands; requiring a password per user or group; requiring
re-entry of a password every time or never requiring a password at all
for a particular command line. It can also be configured to permit
passing arguments or multiple commands, and even supports commands
with regular expressions.




Its a temporary one-time command with superuser (administrator) privileges without direct root login.


[#24997] Tuesday, June 7, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
eeperant

Total Points: 39
Total Questions: 106
Total Answers: 117

Location: Finland
Member since Sat, Dec 5, 2020
3 Years ago
;