Tag Archives: Vim

Add user or group to sudoers file

I had this issue for my Ubuntu and Pidora, so in this article you can have both solutions:

In Ubuntu

The problem I had was to add a user on an Ubuntu 14.04 at my work, so that someone else from the company can help me do some basic maintenance of the system (it was requested by my employee!), so this is how I did it after creating a user (new_user):

 gpasswd -a new_user sudo

This command will add the user new_user to the group sudo.

In Pidora

I was working with Pidora (which is a Fedora remix for Raspberry Pi) and I was about to run a command using sudo that I faced the following error:

[NixSOS@pidora ~]$ sudo iptables -L -n
[sudo] password for NixSOS:
NixSOS is not in the sudoers file. This incident will be reported.

and I was confused for a while and then I searched for a way to add my user in the “sudoers file” and I’m going to explain how to add a user or a group to sudoers file. This should work all major linux distributions.

Continue reading Add user or group to sudoers file

linux terminal text editors interfaces

Usually when you are remoting your server via SSH or Telnet, you are dealing with command interface and almost every configuration in your server needs a text file be edited, so one of the most useful tools everyone needs for server administration, configuration and maintenance is a text editor that works within command interface.

Base on thegeekstuff.com poll , top 5 best linux text editors are Vim, gEdit, Nano, gVim, Eclipse and Emacs as shown in the chart below:

Image: TheGeekStuff  -  [ Top 5 Linux Text Editors ]

Continue reading linux terminal text editors interfaces