![]() ![]() In the case of Mint, the default text editor in the terminal is nano, so the /etc/sudoers file will open in the nano text editor when you run this command. Once youve installed the PostgreSQL server with apt-get install postgresql-9.1, its already set up and running so your steps 2 and 3 (run postgres and run initdb) are not necessary and in fact would conflict with what has already been set up.By running manually initdb youll end up with two postgres clusters. Depending on how you installed Debian 11 / 10, sudo may not have been installed by default. Turns out that the sudo command-line tool is not present by default. lsbrelease -a No LSB modules are available. As you can see in my screenshot, it asks for the root password. Instead, I got the error ‘sudo command not found in Debian 10. However, everywhere I look tell to use visudo, or edit /etc/sudoers, but none of these things exist on this server. To do this, type the following command and press Enter: su. If you enter the sudo visudo command, your default text editor will open, displaying the contents of the /etc/sudoers file. As a reminder, sudo is used to get temporary administrator permissions, but it’s still possible to log in as root or at least switch to the administrator prompt on most distributions. ![]() However, you must edit it through the visudo command for good measure. However, don’t let the name fool you you can use other text editors to edit the sudoers file. 2 Answers Sorted by: 5 sudo is not installed on Debian by default. For Fedora (although it includes by default): sudo dnf install wget. For Ubuntu, Linux Mint, elementaryOS, Debian and related distros: sudo apt install wget. The “vi” portion of the visudo command refers to the vi text editor, which comes standard in many distributions. All you need to do is open a terminal prompt and run the following command to install wget. When using the visudo command, the system verifies the syntax of the /etc/sudoers file before committing changes, enabling the administrator an opportunity to correct mistakes before they become part of the running configuration. Most distributions will set a default editor (usually Vim or nano) for /etc/sudoers. The /etc/sudoers file controls access to all elevated privileges and a mistake in this file can render it impossible to gain root privileges on the server. Make sure your sudoers file have sudo group added. While the /etc/sudoers file is a normal text file, it is essential not to directly edit it with a standard text editor like Vim or nano. On Debian 10 (Buster) and Debian 9 (Stretch), snap can be installed directly from the command line: sudo apt update sudo apt install snapd.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |