is

Adding a route in Linux

If you can to access a network outside your local host’s network, and the same is not know to your default gateway, you will require to add static routes in your systems. Same will be…


linux

Change Timezone in Linux

Setting the correct timezone is very important in any system to avoid confusions. Especially in systems used by multiple users, one may think the time is wrong without noticing the timezone.   To verify the…


lock

CentOS 7 authentication using Active Directory

Though Linux hosts has its own local authentication mechanism, as times requirements will arise where Windows Active Directory authentication will be required. For example, if a Linux host needs access to the NTFS folders shared by a…


phpMail

Sending email with multiple attachment using PhP

The posted below PhP code (function) can be used to send an email with multiple attachment using PhP. ========= =========== ========= <?php $attch1=/attach/file1.txt $attach2=/attach/file2.txt $thefiles[0]=”$attch1″; $thefiles[1]=”$attch2″; $to = “destination@domain.com”; $subject = “Hello”; $message = “How…



lock

Enabling security using .htaccess file

When working with web servers, and displaying contents, you may wish to restrict access to certain pages to only authenticated users. Which means one will require a password to view these restricted pages. Though there…



linux

Samba File Share Service

Install and start samba server: # yum install samba # service smb start # chkconfig smb on   Add users and group: # useradd user01 # passwd user01 # useradd user02 # passwd user02 #…


linux

Redhat Linux sudo users

This page gives basic information about Sudo users. The file used by sudo is /etc/sudoers Never use vi to open this file. Use the command “visudo” user1 ALL=/usr/sbin/useradd By adding this in sido file user1…