Created library function to fetch root password