Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Change ADMIN password in AEM6.1

Avatar

Avatar
Validate 25
Level 3
Jai1122
Level 3

Likes

21 likes

Total Posts

127 posts

Correct Reply

2 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile

Avatar
Validate 25
Level 3
Jai1122
Level 3

Likes

21 likes

Total Posts

127 posts

Correct Reply

2 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile
Jai1122
Level 3

03-05-2016

Hi All,

  I am trying to change the default admin password. I referred to the kb article but that refers to old versions of cq. 

As per adobe docs  

1)The AEM admin account needs to be changed

2)The admin password for the OSGi Web console needs to be changed

For step1 when i try to click the change password link the corresponding dialog is not opening up.

Can someone please help me on this?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,168 likes

Total Posts

6,294 posts

Correct Reply

1,144 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,168 likes

Total Posts

6,294 posts

Correct Reply

1,144 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile
kautuk_sahni
Community Manager

03-05-2016

Option 1:-

Go to "http://localhost:4502/projects.html"

Tools-> operations->Security->Users find "admin" User -> click it-> Under Account Settings there is option for Change Password.

 

Option 2:- CRX Explorer

Go to "http://localhost:4502/crx/explorer/index.jsp"

User Administration-> Find Admin user-> Change Password

 

Option 3:- ConfigMGr

Go to :- http://localhost:4502/system/console/configMgr

Configure "Apache Felix OSGI Management Console" -> Change password -> Save

 

Option 4:- Curl

Link:- http://labs.6dglobal.com/blog/2015-06-03/changing-user-passwords-aem-61-curl/

First, we'll call the Query Builder via cURL to get the path to the user:

curl -s -u admin:admin -X GET "http://localhost:4502/bin/querybuilder.json?path=/home/users&1_property=rep:authorizableId&1_propert...{USER_NAME}&p.limit=-1" > user.json
Next, we read the path from the JSON result:

USER_PATH=`ruby -rjson -e 'j = JSON.parse(File.read("user.json")); puts j["hits"][0]["path"]'`
Finally, the USER_PATH variable can be used to set the user's password:

curl -s -u admin:admin -Fplain={NEW_PASSWORD} -Fverify={NEW_PASSWORD}  -Fold={OLD_PASSWORD} -FPath=$USER_PATH http://localhost:4502/crx/explorer/ui/setpassword.jsp
Putting it all together, if I wanted to change the admin user's password I would call:

curl -s -u admin:admin -X GET "http://localhost:4502/bin/querybuilder.json?path=/home/users&1_property=rep:authorizableId&1_propert..." > user.json
USER_PATH=`ruby -rjson -e 'j = JSON.parse(File.read("user.json")); puts j["hits"][0]["path"]'`
curl -s -u admin:admin -Fplain=admin1 -Fverify=admin1  -Fold=admin -FPath=$USER_PATH http://localhost:4502/crx/explorer/ui/setpassword.jsp

 

I hope this would be helpful to you.

Thanks and Regards

Kautuk Sahni

Answers (4)

Answers (4)

Avatar

Avatar
Validate 1
Level 5
dan_klco
Level 5

Likes

53 likes

Total Posts

88 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Shape 1
Ignite 5
Ignite 40
Ignite 30
View profile

Avatar
Validate 1
Level 5
dan_klco
Level 5

Likes

53 likes

Total Posts

88 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Shape 1
Ignite 5
Ignite 40
Ignite 30
View profile
dan_klco
Level 5

22-02-2018

FYI - since labs.6dglobal.com is down, here's a link to the post about changing password via curl on my personal blog: https://www.danklco.com/posts/2015/06/03/changing-user-passwords-aem-61-curl/

Avatar

Avatar
Validate 1
Level 5
Tuhin_Ghosh
Level 5

Likes

36 likes

Total Posts

301 posts

Correct Reply

40 solutions
Top badges earned
Validate 1
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Validate 1
Level 5
Tuhin_Ghosh
Level 5

Likes

36 likes

Total Posts

301 posts

Correct Reply

40 solutions
Top badges earned
Validate 1
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile
Tuhin_Ghosh
Level 5

03-05-2016

Hi Jai,

 

The replies posted for this question should solve your problem. Please try the same and mark this as solved, otherwise let the community know what problem you are facing after while trying.

Try to capture the error log,

Thanks

Tuhin

Avatar

Avatar
Level 1
lokeshb93001514
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
lokeshb93001514
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile
lokeshb93001514
Level 1

03-05-2016

Changing the password of Admin user. Refer [1]

[1] https://docs.adobe.com/docs/en/aem/6-1/administer/security/granite-user-group-admin.html#Changing the Password for an Existing User

For changing the Felix console pwd,

1. Goto /system/console/configMgr

2. Search for  'Apache Felix OSGi Management Console' and Click on it.

3. Change the password attribute and save.

 

Hope this helps !

Avatar

Avatar
Give Back 10
Level 2
mkumar
Level 2

Likes

3 likes

Total Posts

32 posts

Correct Reply

5 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 1
View profile

Avatar
Give Back 10
Level 2
mkumar
Level 2

Likes

3 likes

Total Posts

32 posts

Correct Reply

5 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 1
View profile
mkumar
Level 2

03-05-2016

Hi Jaypal,

I am able to change admin password in AEM 6.1.

Can u check if u have any errors in console and also monitor the error logs in crx/de  upon clicking the change password link.