Support Questions

Find answers, ask questions, and share your expertise

Unable to create a user in Ambari with name being displayed under file views users

avatar
Explorer

I created a user in Ambari but unable to find the users name in file views in users folder.

For e.g : I have created a user named john so a folder named john should be created under users in file views in Apache Ambari but in my case the file is not present. Kindly help me figure out the issue.

2 REPLIES 2

avatar
Explorer

Kindly help me @Shelton  If you are aware of it

avatar
Master Mentor

@harry_12 

Assumption non kerberized sandboox

User creation in Ambari Ui should auto create user's home directory.
Let try out this recommended approach

On your Ambari Server host, backup and edit the ambari-properties file.

Spoiler
# cp /etc/ambari-server/conf/ambari.properties /etc/ambari-server/conf/ambari.properties_<$date>

Edit using vi in this example

Spoiler
# vi /etc/ambari-server/conf/ambari.properties

For consistency group it alphabetically add the line below as shown see last line 
ambari.post.user.creation.hook=/var/lib/ambari-server/resources/scripts/post-user-creation-hook.sh

Spoiler
#Sat Apr 15 21:49:53 CEST 2023
agent.package.install.task.timeout=1800
agent.stack.retry.on_repo_unavailability=false
agent.stack.retry.tries=5
agent.task.timeout=900
agent.threadpool.size.max=25
ambari-server.user=root
ambari.python.wrap=ambari-python-wrap
ambari.post.user.creation.hook=/var/lib/ambari-server/resources/scripts/post-user-creation-hook.sh

Save the new ambari.properties

Restart Ambari server.

Spoiler
# ambari-server restart

Recreate a new user and see if the home dir is auto-created in /user/<New_user>

Please let me know if that helped