Adding your user to the sudoers file on Debian.

If you want to be able to use the sudo command in Debian to do superuser tasks as your normal user, then you need to edit the /etc/sudoers file to be able to perform administrator tasks as a normal user with sudo. Add the user lovecraft to the sudoers file like this. lovecraft ALL=(ALL:ALL) ALLlovecraft … Read more

How to add a lecture that appears every time sudo is run.

To add a lecture that appears when sudo is run to remind a user to be careful, just run the sudo visudo command and add these two lines to the /etc/sudoers file. Defaults lecture="always" Defaults lecture_file="/root/lecture"Defaults lecture="always" Defaults lecture_file="/root/lecture" Save the file and then add this text to the /root/lecture file. root@Yog-Sothoth:~# cat lecture 1) … Read more

How to have a custom message appear each time sudo is used.

This is how to have a custom lecture appear each time a user executes the sudo command to remind them to be careful with it. Run the visudo command as root and add these lines to the /etc/sudoers file. Defaults lecture="always" Defaults lecture_file="/home/jason/lecture"Defaults lecture="always" Defaults lecture_file="/home/jason/lecture" Then create the /home/jason/lecture file and put this in … Read more

Setting up the normal user account on Debian GNU/Linux to use sudo.

Setting up the normal user account on Debian GNU/Linux to use sudo Setting up your normal user account on Debian to use the sudo command instead of the su command is very simple. This is the contents of my /etc/sudoers file. This line: neo ALL=(ALL:ALL) ALLneo ALL=(ALL:ALL) ALL Is the one that defines our normal … Read more

How to enable sudo on your Linux system with the visudo command.

The visudo command for Linux allows a user to edit the sudoers file and change permissions for users on the system. Open the sudoers file this way. NEVER edit it with a standard text editor. ┌─[jason@neo]─[~] └──╼ $su Password: root@neo:/home/jason# visudo┌─[jason@neo]─[~] └──╼ $su Password: root@neo:/home/jason# visudo This is the result of my editing. I have … Read more

Some miscellaneous Linux tips for Ubuntu and Linux Mint users.

If you are starting Firefox from a terminal window where you have specified the proxy settings, and you have the use system proxy settings option ticked, you will not need to set the proxy within Firefox. That is a very cool tip indeed. If you need to set the proxy before using apt, you will … Read more

How to re run a previous command in your history with sudo privileges.

This is how to rerun a previous command with sudo if you forgot the sudo command to elevate privileges. Here I have tried to cat a file and I have forgotten to elevate my privileges with the sudo command. homer@calculate ~ $ cat /etc/shadow cat: /etc/shadow: Permission deniedhomer@calculate ~ $ cat /etc/shadow cat: /etc/shadow: Permission … Read more

How to add a user to the sudoers file to allow them to use the sudo command.

How to add a user to the sudoers file to allow them to use the sudo command. The /etc/sudoers file contains definitions of all the users that are allowed to use superuser privileges on Linux to perform various tasks as an administrator. This is how to add a user to this file to allow them … Read more

How to enable the su command to access the root account in Linux Mint 13.

Do you ever wish that you could enable the su command on Linux Mint 13 or Ubuntu? Well read on and you will learn how to accomplish this. By default the sudo command is used to run a command as the superuser; this command is controlled by the /etc/sudoers. This is what the file looks … Read more