Sudo is very configurable for example it can be configured to let a certain user only execute certain commands as root. The difference is that -i re initializes the environment to sane defaults, whereas -s uses your configuration files for better or for worse.įor more information, see the sudo website, or type man sudo on your system. ![]() Sometimes, it is more convenient to run an interactive shell as root. ![]() If you need to run several commands as root, prefix each of them with sudo. a typo.) It is often configured to not ask again for a few minutes so you can run several sudo commands in succession. (The purpose is to limit the damage if you leave your keyboard unattended and unlocked, and also to ensure that you really wish to run that command and it wasn't e.g. Sudo requires that you type your own password. If you don't know a separate root password, use this method. This is the preferred method on most systems, including Ubuntu, Linux Mint, (arguably) Debian, and others. Running a shell command as root sudo (preferred when not running a graphical display)
0 Comments
Leave a Reply. |