Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

HDP 2.4 - Not able to login in maria_dev using PUTTY SSH

Highlighted

HDP 2.4 - Not able to login in maria_dev using PUTTY SSH

New Contributor

I recently installed HDP 2.4 sandbox on my virtualbox but I am not able to login in as maria_dev in my putty session.

Although I am able to login in as root/Hadoop from my putty.

Am I missing some steps for password change?

5 REPLIES 5

Re: HDP 2.4 - Not able to login in maria_dev using PUTTY SSH

Expert Contributor

Is there a reason you're using an old version of the sandbox (HDP 2.4)?
I'd recommend using the latest (HDP 2.6.1): https://hortonworks.com/downloads/#sandbox

You may want to try "WEB SHELL CLIENT" (port 4200): http://sandbox.hortonworks.com:4200/
You should be able to logon using:
user: maria_dev
password: maria_dev

Re: HDP 2.4 - Not able to login in maria_dev using PUTTY SSH

Super Mentor

@Akash Sharma

As you are able to login using the root/hadoop from your putty. So have you tried resetting the maria_dev password as following to see if it works?

[root@sandbox tmp]# passwd maria_dev
Changing password for user maria_dev.
New password: maria_dev
Retype new password: maria_dev
passwd: all authentication tokens updated successfully.

.

Also please check the "/etc/passwd" file ... just in case if the maria_dev user is accidentally deleted.

[root@sandbox Build]# grep 'maria_dev' /etc/passwd
maria_dev:x:1023:1023::/home/maria_dev:/bin/bash

.

Re: HDP 2.4 - Not able to login in maria_dev using PUTTY SSH

New Contributor

I tried resetting password of maria_dev but it shows the following:

[root@sandbox ~]# passwd maria_dev

passwd: Unknown user name 'maria_dev'.

Also tried grep command but seems no 'maria_dev' user exists:

[root@sandbox ~]# grep 'maria_dev' /etc/passwd

[root@sandbox ~]#

But weird thing is while using ambari i am able to login using maria_dev but not on SSH Putty.

Re: HDP 2.4 - Not able to login in maria_dev using PUTTY SSH

Super Mentor

@Akash Sharma

Not sure why the "maria_dev" user is missing (I see this user is present in HDP 2.5 , HDP 2.6 Sandbox). Not sure on HDP 2.4 it is too old.

However regarding your query "while using ambari i am able to login using maria_dev but not on SSH Putty."

This is because ambari stores the users information inside the "users" table in postgres (default DB). But the SSH user is actually an Operating System user.

Example:

[root@sandbox ~]# psql -U ambari ambari
Password for user ambari: bigdata
psql (8.4.20)
Type "help" for help.

ambari=> SELECT user_id,principal_id,ldap_user,user_name,user_type FROM users;
 user_id | principal_id | ldap_user |  user_name  | user_type 
---------+--------------+-----------+-------------+-----------
     503 |          514 |         0 | amy_ds      | LOCAL
     504 |          515 |         0 | holger_gov  | LOCAL
    1003 |         1014 |         0 | jay         | LOCAL
    1503 |         1514 |         0 | hive1       | LOCAL
    1504 |         1515 |         0 | hive2       | LOCAL
    2003 |         2014 |         0 | t1          | LOCAL
    2004 |         2015 |         0 | t2          | LOCAL
    2503 |         2514 |         0 | aa          | LOCAL
       3 |           14 |         0 | maria_dev   | LOCAL
       1 |            1 |         0 | admin       | LOCAL
     505 |          516 |         0 | raj_ops     | LOCAL
    3003 |         3014 |         0 | $username   | LOCAL
    3503 |         3514 |         0 | ${username} | LOCAL
    3504 |         3515 |         0 | test112233  | LOCAL
    3505 |         3516 |         0 | abcd1       | LOCAL
    3506 |         3517 |         0 | aabbcc      | LOCAL
    3507 |         3518 |         0 | ff          | LOCAL
(17 rows)

.

So for now if you really want to do SSH using "maria_dev" user then use the "useradd" coperating system command on the Sandbox and create it as following:

# [root@sandbox ~]# useradd maria_dev
# [root@sandbox ~]# passwd maria_dev
Changing password for user maria_dev
New password: maria_dev
Retype new password: maria_dev
passwd: all authentication tokens updated successfully.

.

Re: HDP 2.4 - Not able to login in maria_dev using PUTTY SSH

Super Mentor

@Akash Sharma

Did it work?