Sudo is a command in the command-line Unix. If you have root access, then sudo will do a command as superuser. In the Unix family there such thing as super user root. Super user is able to do anything against the system. Perform public works by using the root account is at risk of dangerous because if the wrong type can damage the system.
Good for general work we use a regular account and use the root account if it is needed. For that sudo can be created so that the account used to run commands that require root access of your account without having to login again with root account. To view the logs contained in the file / var / log / auth.log.
On FreeBSD, User sudo and the commands they use can be found in the configuration file, / usr / local / etc / sudoers. We can not open the file, before we install the sudo package. We can install it via ports.
how:
A. Login As Root. If you do not know your root password, please read this article
2. server # cd / usr / ports / security / sudo
3. server # make install clean
4. After the installation is complete, then:
server # ee / usr / local / etc / sudoers
5. Then find the line as below.
# # Same thing without a password
#% Wheel ALL = (ALL) NOPASSWD: ALL
6. Then add the name of the user who will serve as a superuser, below the line in step number 4. After that save.
tyo ALL = (ALL) NOPASSWD: ALL
7. Then login using the user tyo
8. Then type the following command. And the user tyo have managed to become super user.
$ Sudo su
server #
9. Finished, congratulations
Good for general work we use a regular account and use the root account if it is needed. For that sudo can be created so that the account used to run commands that require root access of your account without having to login again with root account. To view the logs contained in the file / var / log / auth.log.
On FreeBSD, User sudo and the commands they use can be found in the configuration file, / usr / local / etc / sudoers. We can not open the file, before we install the sudo package. We can install it via ports.
how:
A. Login As Root. If you do not know your root password, please read this article
2. server # cd / usr / ports / security / sudo
3. server # make install clean
4. After the installation is complete, then:
server # ee / usr / local / etc / sudoers
5. Then find the line as below.
# # Same thing without a password
#% Wheel ALL = (ALL) NOPASSWD: ALL
6. Then add the name of the user who will serve as a superuser, below the line in step number 4. After that save.
tyo ALL = (ALL) NOPASSWD: ALL
7. Then login using the user tyo
8. Then type the following command. And the user tyo have managed to become super user.
$ Sudo su
server #
9. Finished, congratulations
Labels:
Network
Thanks for reading What is Sudo?. Please share...!
0 Komentar untuk "What is Sudo?"