Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Hue Password Reset or password change?

avatar

When running /usr/lib/hue/build/env/bin/hue passwd, I receive the error myself. The directory /var/log/hue is owned by hue, and when running as this account:

[hue@hdp001 ~]$ /usr/lib/hue/build/env/bin/hue passwd

Changing password for user hue

Password: Traceback (most recent call last):

It will ask to change the password for the user, hue, or whichever user runs it. I even changed permissions on /var/log/hue to 777, and received the same error when trying this as my user.

1 ACCEPTED SOLUTION

avatar
Rising Star

try this as /usr/lib/hue/build/env/bin/hue passwd <username>

run this command as root

View solution in original post

5 REPLIES 5

avatar
Rising Star

try this as /usr/lib/hue/build/env/bin/hue passwd <username>

run this command as root

avatar

1)python /usr/lib/hue/build/env/bin/hue changepassword -v 2 <user Name>

2)/usr/lib/hue/build/env/bin/hue changepasswd <user Name>

The first option as root works fine.

The second option (/usr/lib/hue/build/env/bin/hue passwd kishore) works as well, but ends up throwing an error, after changing the password. I can see that the password entered persists to Hue whenever logging in with that user.

TypeError: argument 1 must be string or read-only character buffer, not tuple

As my user, I cannot change my password. So this is expected, and sudo / root access is required? Now I receive this error: IOError: [Errno 13] Permission denied: '/home/mannb/logs/passwd.log'

A “logs” directory was created, but owned by root under my home directory.

avatar
Rising Star

you can change the ownership of that file by logging in as the user 'hdfs'

avatar
Super Collaborator
@kishore sanchina

what error exactly you are getting in shell ??

avatar

1)python /usr/lib/hue/build/env/bin/hue changepassword -v 2 <user Name>

2)/usr/lib/hue/build/env/bin/hue changepasswd <user Name>

The first option as root works fine.

The second option (/usr/lib/hue/build/env/bin/hue passwd kishore) works as well, but ends up throwing an error, after changing the password. I can see that the password entered persists to Hue whenever logging in with that user.

TypeError: argument 1 must be string or read-only character buffer, not tuple

As my user, I cannot change my password. So this is expected, and sudo / root access is required? Now I receive this error: IOError: [Errno 13] Permission denied: '/home/mannb/logs/passwd.log'

A “logs” directory was created, but owned by root under my home directory.