Support Questions

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

how to change HUE user password ?

avatar

Change of password generally is allow through

  • a)HUE -> Profile (Access denied)
  • b)Typing in /usr/lib/hue/build/env/bin/hue password in linux

/usr/lib/hue/build/env/bin/hue password

Failed to create log directory "logs": [Errno 13] Permission denied: 'logs'

Traceback (most recent call last):

File "/usr/lib/hue/build/env/bin/hue", line 9, in <module>

load_entry_point('desktop==2.6.1', 'console_scripts', 'hue')()

File "/usr/lib/hue/desktop/core/src/desktop/manage_entry.py", line 41, in entry

from desktop import settings, appmanager

File "/usr/lib/hue/desktop/core/src/desktop/settings.py", line 52, in <module>

desktop.log.basic_logging(os.environ[ENV_HUE_PROCESS_NAME])

File "/usr/lib/hue/desktop/core/src/desktop/log/__init__.py", line 117, in basic_logging

raise err

OSError: [Errno 13] Permission denied: 'logs'

However both options seem to be denied access to

1 ACCEPTED SOLUTION

avatar

@kishore sanchina

try this with root user if above command doesn't work,

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

just FYI, Users can't change their password.

View solution in original post

7 REPLIES 7

avatar
Master Guru

@kishore sanchina

I see you are using password as an arugment to hue binary

/usr/lib/hue/build/env/bin/hue password

I believe its passwd instead of password. Can you please try below command as hue user and let me know?

/usr/lib/hue/build/env/bin/hue passwd

avatar
Super Guru
@kishore sanchina

Failed to create log directory "logs": [Errno 13] Permission denied: 'logs'

You don't have write permissions to the logs directory. Give this user "write permissions" so it is able to write to logs folder. Or you'll probably need to ask HUE admin to do this for you.

avatar

@kuldeep kulkarni

Can the Hue admin reset the password and then the user change it once they login ?

avatar

@kishore sanchina

try this with root user if above command doesn't work,

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

just FYI, Users can't change their password.

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

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@mdzusvpclhdp001 ~]$ /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.

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.