It has always been a great concern to keep track of folder permissions since most of the lame errors in Linux are due to a permission denial by the system, and sysadmins should change some permissions from time to time to fix things. At this point having a good record of what has been changed is vital since in terminal there is no undo or Ctrl+z and you should keep track of what you are doing to reverse the change and correct the mistakes.
In this post I briefly want to present some lines of code that can help you keep track.
Continue reading Save file/folder structure including permissions
I had this issue for my Ubuntu and Pidora, so in this article you can have both solutions:
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.
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
The best friend while using Linux is the terminal and unfortunately in Fedora 16+ (16 and above) they had remove the keyboard shortcut from the default list. In below you will find an easy way to add terminal keyboard shortcut in your fedora (and other RHEL)
Continue reading Terminal Keyboard Shortcut in Fedora
Typically when you had installed the OS on your server, the monitor and input devices like keyboard and mouse are no longer need to attached to the server, so the only way remains to control your server is the remote connection. The most common interface for remote connection among linux users is command line.
There are plenty of softwares you can use to remote your server. I searched web for benchmark, but did not find any, so I’m going to introduce those softwares I know and I’v worked with: Continue reading Softwares to Remote Linux Servers