Samba Server type is configured in the [global] section of the /etc/samba/smb.conf file. Below are 3 types of Samba servers used while configuring Samba. Stand-Alone Server Domain Member Server Domain Controller Stand-Alone Server A stand-alone Samba server can be a workgroup server or a member of a workgroup environment and does not participate in a […]
Archives for December 2017
How to use rndc command (command-line administration tool for named)
The rndc utility is a command-line tool to administer the named service, both locally and from a remote machine. To prevent unauthorized access to the service, rndc must be configured to listen on the selected port (port 953 by default), and an identical key must be used by both the service and the rndc utility. […]
Understanding DNS zone files
What are DNS zone files Information about domains in the DNS database is stored in zone files. A zone file consists of directives and resource records. Directives tell the nameserver to perform tasks or apply special settings to the zone. Resource records define the parameters of the zone and store host information. Directives are optional, […]
What happens in the Background when you execute the “useradd” command under Linux
When you execute the “useradd” command to add a new user on the server, in the background, there are several files updated and created. This post lists out the exact steps carried out in the background when you execute the below command. # useradd john 1. A new line for user john is created in […]
What is the purpose of .bash_profile file under User Home Directory In Linux
What is the purpose of ~/.bash_profile file Apart from having a home directory to create and store files, users need an environment that gives them access to the tools and resources. When a user logs in to a system, the user’s work environment is determined by the initialization files. These initialization files are defined by […]
Understanding chroot Jail
As the name implies, a chroot operation changes the apparent root directory for a running process and its children. It allows you to run a program (process) with a root directory other than /. The program cannot see or access files outside the designated directory tree. For example, you can run a program and specify […]
How to enable IPv6 on CentOS / RHEL 6
IPv6 is by default enabled on CentOS/RHEL 6 systems. But in case, if it was disabled for some reason, you can follow the short howto below to re-enable it. There are basically 2 ways to disable IPv6 on CentOS/RHEL 6. Disable IPv6 in kernel module (requires reboot) Disable IPv6 using sysctl settings (no reboot required) […]
How to Create a New /boot Partition in CentOS / RHEL
Here is a short howto on creating a new /boot partition in LVM and migrate the existing boot partition to this newly created boot partition. The procedure basically involves creating a new /boot partition and copy all the files/folders from the old /boot to new /boot partition. NOTE: You can try the below steps but […]
How to Enable Verbose Logging for VSFTPD
The main configuration file for VSFTPD is ‘/etc/vsftpd/vsftpd.conf‘. When verbose logging is enabled you need to disable the normal logging option, i.e xferlog_std_format=NO. Below are the 2 options, that come in picture while configuring the logging in vsftpd. xferlog_std_format — When enabled in conjunction with xferlog_enable, the log is written to the file specified in […]
View files using – cat, more, tail, head and wc commands
There are several commands that display information about a file in the read-only format. The file-viewing commands include the following: cat more tail head wc cat Command The cat command displays the content of one or more text files on the screen without pausing. $ cat filename For Example: # cat data.txt northwest NW Joel […]