Hi Aviral,
It's probably possible to complete what you're trying to do, but there's a much easier way.
- 
Go to https://www.elastic.co/downloads/kibana and download the Linux package appropriate for your Linux distribution. For example, on Ubuntu 64-bit you would get the
.debpackage https://artifacts.elastic.co/downloads/kibana/kibana-5.1.2-amd64.deb
On Redhat or CentOS you would get the.rpmpackage. - 
Install the package (as root). On Ubuntu
dpkg -i <the .deb package you downloaded>
On Redhat or CentOSyum install -y <the .rpm package you downloaded> - 
same steps as above for Elasticsearch.
 - 
The config files are in /etc/elasticsearch and /etc/kibana (but they should both start and connect with no changes)
 - 
as root
service elasticsearch start,service kibana start 
NOTE: Installing the packages create elasticsearch and kibana users and starting the services runs them as those users
- see /var/log/elasticsearch/elasticsearch.log and /var/log/kibana/kibana.stdout
 
Regards,
Lee