Sudo on Windows is not as good as it claims to be.
The new sudo command on Windows is not as good as it seems, not compared to Linux.
Read MoreThe new sudo command on Windows is not as good as it seems, not compared to Linux.
Read MoreMicrosoft is adding sudo to Windows 11 and Windows 12. This is an interesting development.
Read MoreHow to set up and use the sudoreplay system on an Ubuntu server and then record all sudo usage for later examination. This could be very useful to a systems admin.
Read MoreIf 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…
Read MoreTo 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…
Read MoreThis 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…
Read MoreAdd a user to the sudoers file on Linux easily If you need to add your user on a Linux system to the /etc/sudoers file, this is how to do it properly. I am adding a new UNIX user to my system. This user will have sudo access. jason@darkstar:~$ sudo…
Read MoreSetting 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…
Read MoreThe 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…
Read MoreIf 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…
Read MoreThis 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 ~ $…
Read MoreHow 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…
Read MoreDifferent ways to switch to the root account on a Linux system.
Read MoreThe visudo command is used on Linux systems to edit the /etc/sudoers file; this ensures that there are no errors before the changes are written to the actual file. As you can see below; I have added my user homer to the sudoers file. This allows me to run commands…
Read MoreDo 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…
Read More